#include "petscdmda.h" PetscErrorCode DMDACreate1d(MPI_Comm comm, DMBoundaryType bx, PetscInt M, PetscInt dof, PetscInt s, const PetscInt lx[], DM *da)Collective on MPI_Comm
comm | - MPI communicator | |
bx | - type of ghost cells at the boundary the array should have, if any. Use DM_BOUNDARY_NONE, DM_BOUNDARY_GHOSTED, or DM_BOUNDARY_PERIODIC. | |
M | - global dimension of the array (use -M to indicate that it may be set to a different value from the command line with -da_grid_x <M>) | |
dof | - number of degrees of freedom per node | |
s | - stencil width | |
lx | - array containing number of nodes in the X direction on each processor, or NULL. If non-null, must be of length as the number of processes in the MPI_Comm. |
-dm_view | - Calls DMView() at the conclusion of DMDACreate1d() | |
-da_grid_x <nx> | - number of grid points in x direction; can set if M < 0 | |
-da_refine_x <rx> | - refinement factor | |
-da_refine <n> | - refine the DMDA n times before creating it, if M < 0 |
Level:beginner
Location:src/dm/impls/da/da1.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages