cashocs.io.mesh.read_mesh_from_xdmf#

cashocs.io.mesh.read_mesh_from_xdmf(filename: str, step: int = 0, comm: MPI.Comm | None = None) fenics.Mesh[source]#

Reads a mesh from a .xdmf file containing a checkpointed function.

Parameters:
  • filename (str) – The filename to the .xdmf file.

  • step (int) – The checkpoint number. Default is 0.

  • comm (MPI.Comm | None) – MPI communicator that is to be used for creating the mesh.

Returns:

The corresponding mesh for the checkpoint number.

Return type:

fenics.Mesh