StructuredMesh
-
class StructuredMesh : public godzilla::Mesh
Public Functions
-
StructuredMesh clone() const
Clone this structured mesh object.
- Returns:
Clone of this object
-
void set_stencil_type(DMDAStencilType stype)
Sets the type of the communication stencil.
-
void set_stencil_width(Int width)
Sets the width of the communication stencil.
-
void set_sizes(Int M, Int N = 0, Int P = 0)
Sets the number of grid points in the three dimensional directions.
-
void set_num_procs(Int m, Int n = 0, Int p = 0)
Sets the number of processes in each dimension.
-
void set_dof(Int n_dofs)
Sets the number of degrees of freedom per vertex.
-
void set_overlap(Int x, Int y = 0, Int z = 0)
Sets the size of the per-processor overlap.
- Parameters:
x – Overlap in the x direction
y – Overlap in the y direction
z – Overlap in the z direction
Public Static Functions
-
static StructuredMesh create_1d(mpi::Communicator comm, DMBoundaryType bx, Int M, Int dof, Int s)
Creates an object that will manage the communication of one-dimensional regular array data that is distributed across one or more MPI processes.
- Parameters:
comm – MPI communicator
bx – Type of ghost cells at the boundary the array should have, if any. Use
DM_BOUNDARY_NONE,DM_BOUNDARY_GHOSTED, orDM_BOUNDARY_PERIODIC.M – Global dimension of the array (that is the number of grid points)
dof – Number of degrees of freedom per node
s – Stencil width
-
StructuredMesh clone() const