#include "petscsys.h" #include "petscis.h" int ISLocalToGlobalMappingCreateNC(MPI_Comm cm,int n,const int indices[],ISLocalToGlobalMapping *mapping)Not Collective, but communicator may have more than one process
comm | - MPI communicator | |
n | - the number of local elements | |
indices | - the global index for each local element |
Notes: Does not copy the indices, just keeps the pointer to the indices. The ISLocalToGlobalMappingDestroy() will free the space so it must be obtained with PetscMalloc() and it must not be freed elsewhere.
Level:developer
Location:src/vec/is/utils/isltog.c
Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages