cashocs.io.mesh.check_mesh_compatibility#

cashocs.io.mesh.check_mesh_compatibility(mesh: fenics.Mesh, original_mesh_file: str) None[source]#

Checks, whether the supplied mesh file is compatible with the mesh used.

This function returns None if they are compatible and raises an exception otherwise.

Parameters:
  • mesh (fenics.Mesh) – The mesh that is currently used.

  • original_mesh_file (str) – The path to the mesh file.

Return type:

None