cashocs.io.convert#

cashocs.io.convert(
input_file: str,
output_file: str | None = None,
mode: str = 'physical',
quiet: bool = False,
comm: MPI.Comm | None = None,
) None[source]#

Converts the input mesh file to a xdmf mesh file for cashocs to work with.

Parameters:
  • input_file (str) – A gmsh .msh file.

  • output_file (str | None) – The name of the output .xdmf file or None. If this is None, then a file name.msh will be converted to name.xdmf, i.e., the name of the input file stays the same

  • quiet (bool) – A boolean flag which silences the output.

  • mode (str) – The mode which is used to define the subdomains and boundaries. Should be one of ‘physical’ (the default), ‘geometrical’, or ‘none’.

  • comm (MPI.Comm | None) – The MPI.Comm that is used for parallelization.

Return type:

None