DMDAGetRay#
Returns a vector on process zero that contains a row or column of the values in a DMDA
vector
Synopsis#
#include "petscdmda.h"
PetscErrorCode DMDAGetRay(DM da, DMDirection dir, PetscInt gp, Vec *newvec, VecScatter *scatter)
Collective
Input Parameters#
Output Parameters#
newvec - the new vector that can hold the values (size zero on all processes except MPI rank 0)
scatter - the
VecScatter
that will map from the original vector to the ray
Note#
All processors that share the DMDA
must call this with the same gp
value
See Also#
DMDA - Creating vectors for structured grids, DM
, DMDA
, DMDirection
, Vec
, VecScatter
Level#
advanced
Location#
Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages