#include "petscvec.h" PetscErrorCode VecRestoreSubVector(Vec X,IS is,Vec *Y)Collective on IS (and Vec if nonlocal entries need to be written)
X | - vector from which subvector was obtained | |
is | - index set representing the subset of X | |
Y | - subvector being restored |