Function t8_cmesh_new_brick_2d

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_y brick 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.