# PCFieldSplitSetIS#

Sets the exact elements for a split in a PCFIELDSPLIT

## Synopsis#

#include "petscpc.h"
PetscErrorCode PCFieldSplitSetIS(PC pc, const char splitname[], IS is)


Logically Collective

## Input Parameters#

• pc - the preconditioner context

• splitname - name of this split, if NULL the number of the split is used

• is - the index set that defines the elements in this split

## Notes#

Use PCFieldSplitSetFields(), for splits defined by strided types.

This function is called once per split (it creates a new split each time). Solve options for this split will be available under the prefix -fieldsplit_SPLITNAME_.

Solving Block Matrices, PC, PCFieldSplitGetSubKSP(), PCFIELDSPLIT, PCFieldSplitSetBlockSize()

intermediate

## Location#

src/ksp/pc/impls/fieldsplit/fieldsplit.c

Edit on GitLab