DMGetLocalToGlobalMapping

Accesses the local-to-global mapping in a DM.

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGetLocalToGlobalMapping(DM dm,ISLocalToGlobalMapping *ltog)
Collective on dm

Input Parameter

dm - the DM that provides the mapping

Output Parameter

ltog - the mapping

Level: intermediate

Notes

This mapping can then be used by VecSetLocalToGlobalMapping() or MatSetLocalToGlobalMapping().

See Also

DMCreateLocalVector()

Location:dm.c