#include "petscdmda.h" PetscErrorCode DMDAGetRay(DM da,DMDADirection dir,PetscInt gp,Vec *newvec,VecScatter *scatter)Collective on DMDA
| da | - the distributed array | |
| vec | - the vector | |
| dir | - Cartesian direction, either DMDA_X, DMDA_Y, or DMDA_Z | |
| gp | - global grid point number in this direction |
| newvec | - the new vector that can hold the values (size zero on all processes except process 0) | |
| scatter | - the VecScatter that will map from the original vector to the slice |