Function t8_cmesh_new_from_p4est

Function Documentation

t8_cmesh_t t8_cmesh_new_from_p4est(p4est_connectivity_t *conn, sc_MPI_Comm comm, int do_partition)

Constructs a cmesh from a given p4est_connectivity structure.

Note

This function requires that p4est is initialized. Make sure to call p4est_init before using this routine. If this is not the case, a warning is issued and p4est_init is called from within this function.

Parameters:
  • conn[in] The p4est connectivity.

  • comm[in] mpi communicator to be used with the new cmesh.

  • do_partition[in] Flag whether the cmesh should be partitioned or not.

Returns:

A t8_cmesh structure that holds the same connectivity information as conn.