t8
1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
|
We define function here that serve to open a mesh file generated by TETGEN and consructing a cmesh from it. More...
Go to the source code of this file.
Functions | |
t8_cmesh_t | t8_cmesh_from_triangle_file (char *fileprefix, int partition, sc_MPI_Comm comm, int do_dup) |
Open a .node, .ele and .neigh file created by TRIANGLE to read and create a cmesh from them. More... | |
We define function here that serve to open a mesh file generated by TETGEN and consructing a cmesh from it.
We define function here that serve to open a mesh file generated by TRIANGLE and consructing a cmesh from it.
t8_cmesh_t t8_cmesh_from_triangle_file | ( | char * | fileprefix, |
int | partition, | ||
sc_MPI_Comm | comm, | ||
int | do_dup | ||
) |
Open a .node, .ele and .neigh file created by TRIANGLE to read and create a cmesh from them.
The cmesh will be replicated. The files are opened and read by one process and the cmesh is then broadcasted to the other processes.
[in] | fileprefix | A string holding the prefix of the TRIANGLE files. The files fileprefix.node, fileprefix.ele and fileprefix.neigh are read. |
[in] | partition | In the future this flag can decide whether the returned cmesh is partitioned or not. Currently it is always replicated. |
[in] | comm | The mpi communicator to be used. |
[in] | do_dup | Whether comm should be duplicated by cmesh. |