ISRestoreIndices#

Restores an index set to a usable state after a call to ISGetIndices().

Synopsis#

#include "petscis.h" 
PetscErrorCode ISRestoreIndices(IS is, const PetscInt *ptr[])

Not Collective

Input Parameters#

  • is - the index set

  • ptr - the pointer obtained by ISGetIndices()

Fortran Note#

ISRestoreIndices() Fortran binding is deprecated (since PETSc 3.19), use ISRestoreIndicesF90()

See Also#

IS, ISGetIndices(), ISRestoreIndicesF90()

Level#

intermediate

Location#

src/vec/is/is/interface/index.c

Examples#

src/dm/impls/plex/tutorials/ex10.c
src/dm/tutorials/ex22.c
src/dm/tutorials/swarm_ex3.c
src/ksp/ksp/tutorials/ex19.c
src/ksp/ksp/tutorials/ex71.c
src/ksp/ksp/tutorials/ex76.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex56.c
src/snes/tutorials/ex77.c
src/tao/tutorials/ex3.c
src/ts/tutorials/ex11_sa.c

Implementations#

ISRestoreIndices_Block in src/vec/is/is/impls/block/block.c
ISRestoreIndices_General in src/vec/is/is/impls/general/general.c
ISRestoreIndices_Stride in src/vec/is/is/impls/stride/stride.c


Edit on GitLab

Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages