#include "petscdmda.h" PetscErrorCode DMDAGetGlobalIndices(DM da,PetscInt *n,PetscInt **idx)Not Collective
| n | - the number of local elements, including ghost nodes (or PETSC_NULL) | |
| idx | - the global indices |
Essentially the same data is returned in the form of a local-to-global mapping with the routine DMDAGetISLocalToGlobalMapping();
DM da
integer n,da_array(1)
PetscOffset i_da
integer ierr
call DMDAGetGlobalIndices(da,n,da_array,i_da,ierr)
C Access first local entry in list
value = da_array(i_da + 1)
See the <A href="../../docs/manual.pdf#nameddest=Chapter 10 PETSc for Fortran Users">Fortran chapter</A> of the users manual for details.
Level:intermediate
Location:src/dm/impls/da/daindex.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages