Function t8_cmesh_new_brick_2d(t8_gloidx_t, t8_gloidx_t, int, int, sc_MPI_Comm)
Defined in File t8_cmesh_examples.cxx
Function Documentation
-
t8_cmesh_t t8_cmesh_new_brick_2d(t8_gloidx_t num_x, t8_gloidx_t num_y, int x_periodic, int y_periodic, sc_MPI_Comm comm)
Create a cmesh of quads whose trees are given by a
num_x * num_ybrick connectivity.- Parameters:
num_x – [in] The number of trees in x-direction. Must be >= 0.
num_y – [in] The number of trees in y-direction. Must be >= 0.
x_periodic – [in] If nonzero, the local brick connectivity is periodic in x direction.
y_periodic – [in] If nonzero, the local brick connectivity is periodic in y direction.
comm – [in] The MPI communicator used to commit the cmesh.
- Returns:
A committed and partitioned cmesh.