Function t8_cmesh_from_msh_file

Function Documentation

t8_cmesh_t t8_cmesh_from_msh_file(const char *fileprefix, int partition, sc_MPI_Comm comm, int dim, int master, int use_cad_geometry)

Read a .msh file and create a cmesh from it.

Parameters:
  • fileprefix[in] The prefix of the mesh file. The file fileprefix.msh is read.

  • partition[in] If true the file is only opened on one process specified by the master argument and saved as a partitioned cmesh where each other process does not have any trees.

  • comm[in] The MPI communicator with which the cmesh is to be committed.

  • dim[in] The dimension to read from the .msh files. The .msh format can store several dimensions of the mesh and therefore the dimension to read has to be set manually.

  • master[in] If partition is true, a valid MPI rank that will read the file and store all the trees alone.

  • use_cad_geometry[in] Read the parameters of a parametric msh file and use the cad geometry.

Returns:

A committed cmesh holding the mesh of dimension dim in the specified .msh file.