Function t8_cmesh_from_tetgen_file

Function Documentation

t8_cmesh_t t8_cmesh_from_tetgen_file(char *fileprefix, int partition, sc_MPI_Comm comm, int do_dup)

Open a .node, .ele and .neigh file created by TETGEN 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.

Note

IMPORTANT: Currently, this functionality is deactivated, because it is outdated. Calling it will thus result in an error.

Parameters:
  • fileprefix[in] A string holding the prefix of the TETGEN files. The files fileprefix.node, fileprefix.ele and fileprefix.neigh are read.

  • partition[in] In the future this flag can decide whether the returned cmesh is partitioned or not. Currently it is always replicated.

  • comm[in] The mpi communicator to be used.

  • do_dup[in] Whether comm should be duplicated by cmesh.

Returns:

A committed, replicated cmesh constructed from the info in the TETGEN files.