petsc-3.7.1 2016-05-15
ISCreateGeneral
Creates a data structure for an index set containing a list of integers.
Synopsis
#include "petscis.h"
PetscErrorCode ISCreateGeneral(MPI_Comm comm,PetscInt n,const PetscInt idx[],PetscCopyMode mode,IS *is)
Collective on MPI_Comm Many br
Input Parameters
| comm | - the MPI communicator Many br |
| n | - the length of the index set Many br |
| idx | - the list of integers Many br |
| mode | - see PetscCopyMode for meaning of this flag. Many br |
Output Parameter
is -the new index set Many br
Notes
When the communicator is not MPI_COMM_SELF, the operations on IS are NOT Many brconceptually the same as MPI_Group operations. The IS are then Many brdistributed sets of indices and thus certain operations on them are Many brcollective. Many br
Many br
See Also
ISCreateStride(), ISCreateBlock(), ISAllGather()
Level:beginner
Location:src/vec/is/is/impls/general/general.c
Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/vec/is/is/examples/tutorials/ex1.c.html
src/vec/is/is/examples/tutorials/ex1f.F.html
src/vec/is/is/examples/tutorials/ex1f90.F.html
src/ksp/ksp/examples/tutorials/ex6.c.html
src/ksp/ksp/examples/tutorials/ex49.c.html