We define function here that serve to open a mesh file generated by GMSH and consructing a cmesh from it.
More...
#include <t8.h>
#include <t8_eclass.h>
#include <t8_cmesh.h>
Go to the source code of this file.
|
#define | T8_CMESH_N_SUPPORTED_MSH_FILE_VERSIONS 2 |
|
|
const int | t8_cmesh_supported_msh_file_versions [T8_CMESH_N_SUPPORTED_MSH_FILE_VERSIONS] |
|
We define function here that serve to open a mesh file generated by GMSH and consructing a cmesh from it.
◆ t8_cmesh_from_msh_file()
t8_cmesh_t t8_cmesh_from_msh_file |
( |
const char * |
fileprefix, |
|
|
int |
partition, |
|
|
sc_MPI_Comm |
comm, |
|
|
int |
dim, |
|
|
int |
master, |
|
|
int |
use_occ_geometry |
|
) |
| |
Read a .msh file and create a cmesh from it.
- Parameters
-
[in] | fileprefix | The prefix of the mesh file. The file fileprefix.msh is read. |
[in] | partition | 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. |
[in] | comm | The MPI communicator with which the cmesh is to be committed. |
[in] | dim | 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. |
[in] | master | If partition is true, a valid MPI rank that will read the file and store all the trees alone. |
[in] | use_occ_geometry | Read the parameters of a parametric msh file and use the occ geometry. |
- Returns
- A committed cmesh holding the mesh of dimension dim in the specified .msh file.
◆ t8_cmesh_supported_msh_file_versions
const int t8_cmesh_supported_msh_file_versions[T8_CMESH_N_SUPPORTED_MSH_FILE_VERSIONS] |