VecSetLocalToGlobalMapping#
Sets a local numbering to global numbering used by the routine VecSetValuesLocal()
to allow users to insert vector entries using a local (per-processor) numbering.
Synopsis#
#include "petscvec.h"
PetscErrorCode VecSetLocalToGlobalMapping(Vec x, ISLocalToGlobalMapping mapping)
Logically Collective
Input Parameters#
x - vector
mapping - mapping created with ISLocalToGlobalMappingCreate() or ISLocalToGlobalMappingCreateIS()
Note#
All vectors obtained with VecDuplicate()
from this vector inherit the same mapping.
seealso: Vectors and Parallel Data, Vec
, VecAssemblyBegin()
, VecAssemblyEnd()
, VecSetValues()
, VecSetValuesLocal()
,
VecSetLocalToGlobalMapping()
, VecSetValuesBlockedLocal()
Level#
intermediate
Location#
Examples#
src/vec/vec/tutorials/ex8.c.html
src/vec/vec/tutorials/ex8f.F90.html
src/ksp/ksp/tutorials/ex71.c.html
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages