#include "petscis.h" PetscErrorCode ISCreateBlock(MPI_Comm comm,PetscInt bs,PetscInt n,const PetscInt idx[],PetscCopyMode mode,IS *is)Collective
| comm | - the MPI communicator | |
| bs | - number of elements in each block | |
| n | - the length of the index set (the number of blocks) | |
| idx | - the list of integers, one for each block, the integers contain the index of the first entry of each block divided by the block size | |
| mode | - see PetscCopyMode, only PETSC_COPY_VALUES and PETSC_OWN_POINTER are supported in this routine |
| is | - the new index set |