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#
dm - the
DMDA
Output Parameters#
numVerticesX - number of vertices in the x direction, or
NULLif not needednumVerticesY - number of vertices in the y direction (
1ifdim < 2), orNULLif not needednumVerticesZ - number of vertices in the z direction (
1ifdim < 3), orNULLif not needednumVertices - total number of vertices, or
NULLif not needed
See Also#
DM, DMDA, DMDAGetNumCells(), DMDAGetNumFaces()
Level#
developer
Location#
Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages