petsc-3.5.4 2015-05-23
DMDAGlobalToNaturalBegin
Maps values from the global vector to a global vector in the "natural" grid ordering. Must be followed by DMDAGlobalToNaturalEnd() to complete the exchange.
Synopsis
#include "petscdmda.h"
PetscErrorCode DMDAGlobalToNaturalBegin(DM da,Vec g,InsertMode mode,Vec l)
Neighbor-wise Collective on DMDA
Input Parameters
Output Parameter
l -the natural ordering values
Notes
The global and natrual vectors used here need not be the same as those
obtained from DMCreateGlobalVector() and DMDACreateNaturalVector(), BUT they
must have the same parallel data layout; they could, for example, be
obtained with VecDuplicate() from the DMDA originating vectors.
You must call DMDACreateNaturalVector() before using this routine
Keywords
distributed array, global to local, begin
See Also
DMDAGlobalToNaturalEnd(), DMLocalToGlobalBegin(), DMDACreate2d(),
DMGlobalToLocalBegin(), DMGlobalToLocalEnd(), DMDACreateNaturalVector()
Level:advanced
Location:src/dm/impls/da/dagtol.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages