How did the Function object change in dolfinx v0.9.0?

There is a modified release note coming up:

which explains it in the following way:

PETSc object memory management {#petsc-mem}

Main Contributors: Umberto Villa, Jack Hale and Garth N. Wells

Removal of dolfinx.fem.Function.vector

To avoid extra MPI communicator duplication when re-using the underlying dolfinx.la.Vector the PETSc.Vec wrapper in DOLFINx now lives in dolfinx.fem.Function.x.petsc_vec.

Note on memory management

A note on the memory management of all PETSc objects created with DOLFINx has been added to relevant functions.

Relevant pull requests

4 Likes