PetscLayoutMapLocal#
Maps a set of global indices to the subset owned locally by each MPI process according to a PetscLayout
Synopsis#
#include "petscsf.h"
PetscErrorCode PetscLayoutMapLocal(PetscLayout map, PetscInt N, const PetscInt idxs[], PetscInt *on, PetscInt *oidxs[], PetscInt *ogidxs[])
Collective
Input Parameters#
map - the
PetscLayoutdescribing global ownershipN - the number of input indices
idxs - the global indices; negative entries are ignored
Output Parameters#
Developer Note#
Uses a PetscSF internally to route each input index to its owner and reduce with MPI_LOR, producing on each MPI
process the sorted, deduplicated list of local indices for which at least one process supplied a matching global index.
See Also#
PetscLayout, PetscSF, PetscLayoutFindOwner(), PetscSFCreateFromLayouts()
Level#
developer
Location#
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages