DMDAGlobalToNaturalEnd#
Maps values from the global vector obtained with DMCreateGlobalVector()
to a global vector in the natural ordering. Must be preceded by DMDAGlobalToNaturalBegin()
.
Synopsis#
#include "petscdmda.h"
PetscErrorCode DMDAGlobalToNaturalEnd(DM da, Vec g, InsertMode mode, Vec n)
Neighbor-wise Collective
Input Parameters#
da - the
DMDA
contextg - the global vector, see
DMCreateGlobalVector()
mode - one of
INSERT_VALUES
orADD_VALUES
Output Parameter#
n - the global values in the natural ordering, see
DMDACreateNaturalVector()
Note#
The global and local 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.
See Also#
DMDA - Creating vectors for structured grids, DM
, DMDA
, DMDAGlobalToNaturalBegin()
, DMLocalToGlobalBegin()
, DMDACreate2d()
,
DMGlobalToLocalBegin()
, DMGlobalToLocalEnd()
, DMDACreateNaturalVector()
Level#
advanced
Location#
Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages