t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Data Structures | Macros | Functions | Variables
t8_cmesh_readmshfile.h File Reference

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.

Data Structures

struct  t8_msh_file_node_t
 
struct  t8_msh_file_node_parametric_t
 

Macros

#define T8_CMESH_N_SUPPORTED_MSH_FILE_VERSIONS   2
 

Functions

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. More...
 

Variables

const int t8_cmesh_supported_msh_file_versions [T8_CMESH_N_SUPPORTED_MSH_FILE_VERSIONS]
 

Detailed Description

We define function here that serve to open a mesh file generated by GMSH and consructing a cmesh from it.

Function Documentation

◆ 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]fileprefixThe prefix of the mesh file. The file fileprefix.msh is read.
[in]partitionIf 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]commThe MPI communicator with which the cmesh is to be committed.
[in]dimThe 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]masterIf partition is true, a valid MPI rank that will read the file and store all the trees alone.
[in]use_occ_geometryRead 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.

Variable Documentation

◆ t8_cmesh_supported_msh_file_versions

const int t8_cmesh_supported_msh_file_versions[T8_CMESH_N_SUPPORTED_MSH_FILE_VERSIONS]
Initial value:
=
{
2, 4
}