petsc-3.7.1 2016-05-15
Report Typos and Errors

ISComplement

Given an index set (IS) generates the complement index set. That is all all indices that are NOT in the given set.

Synopsis

#include "petscis.h"  
PetscErrorCode  ISComplement(IS is,PetscInt nmin,PetscInt nmax,IS *isout)
Collective on IS Many br

Input Parameter

is - the index set Many br
nmin - the first index desired in the local part of the complement Many br
nmax - the largest index desired in the local part of the complement (note that all indices in is must be greater or equal to nmin and less than nmax) Many br

Output Parameter

isout -the complement Many br

Notes: The communicator for this new IS is the same as for the input IS Many br

For a parallel IS, this will generate the local part of the complement on each process Many br

To generate the entire complement (on each process) of a parallel IS, first call ISAllGather() and then Many brcall this routine. Many br

Many br

See Also

ISCreateGeneral(), ISCreateStride(), ISCreateBlock(), ISAllGather()

Level:intermediate
Location:
src/vec/is/is/utils/iscoloring.c
Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages