:orphan: # ISSetLayout set `PetscLayout` describing index set layout ## Synopsis ``` #include "petscis.h" PetscErrorCode ISSetLayout(IS is, PetscLayout map) ``` Collective ## Input Arguments - ***is -*** the index set - ***map -*** the layout ## Notes Users should typically use higher level functions such as `ISCreateGeneral()`. This function can be useful in some special cases of constructing a new `IS`, e.g. after `ISCreate()` and before `ISLoad()`. Otherwise, it is only valid to replace the layout with a layout known to be equivalent. ## See Also `IS`, `PetscLayout`, `ISCreate()`, `ISGetLayout()`, `ISGetSize()`, `ISGetLocalSize()` ## Level developer ## Location src/vec/is/is/interface/index.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/interface/index.c) [Index of all IS routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)