sblauth / cashocs

computational adjoint-based shape optimization and optimal control software for python
https://cashocs.readthedocs.io/
GNU General Public License v3.0
53 stars 10 forks source link

Avoid PETSc segfaults due to DMCollection #468

Closed sblauth closed 4 months ago

sblauth commented 4 months ago

The PETScDMCollection can still be used with newer versions of PETSc / petsc4py. However, using .createVecs or similar cannot be done on the transfer matrix. The matrix can, however, still be multiplied, which is all we need.

sblauth commented 4 months ago

Note: Some tests will fail - this is due to the fact that we merge this onto v2.1.3.