DMDAGetNumVertices#

Return the number of local vertices (including ghost vertices) of a DMDA in each dimension and in total.

Synopsis#

#include "petscdmda.h"   
PetscErrorCode DMDAGetNumVertices(DM dm, PetscInt *numVerticesX, PetscInt *numVerticesY, PetscInt *numVerticesZ, PetscInt *numVertices)

Not Collective

Input Parameter#

Output Parameters#

  • numVerticesX - number of vertices in the x direction, or NULL if not needed

  • numVerticesY - number of vertices in the y direction (1 if dim < 2), or NULL if not needed

  • numVerticesZ - number of vertices in the z direction (1 if dim < 3), or NULL if not needed

  • numVertices - total number of vertices, or NULL if not needed

See Also#

DM, DMDA, DMDAGetNumCells(), DMDAGetNumFaces()

Level#

developer

Location#

src/dm/impls/da/dalocal.c


Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages