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 on Vec

Input Parameters

x - vector
mapping - mapping created with ISLocalToGlobalMappingCreate() or ISLocalToGlobalMappingCreateIS()

Notes

All vectors obtained with VecDuplicate() from this vector inherit the same mapping.

Level: intermediate

seealso: VecAssemblyBegin(), VecAssemblyEnd(), VecSetValues(), VecSetValuesLocal(), VecSetLocalToGlobalMapping(), VecSetValuesBlockedLocal()

Location:vector.c