VecCreateNest#
Creates a new vector containing several nested subvectors, each stored separately
Synopsis#
#include "petscvec.h"
PetscErrorCode VecCreateNest(MPI_Comm comm, PetscInt nb, IS is[], Vec x[], Vec *Y)
Collective
Input Parameters#
comm - Communicator for the new
Vecnb - number of nested blocks
is - array of
nbindex sets describing each nested block, orNULLto pack subvectors contiguouslyx - array of
nbsub-vectors
Output Parameter#
Y - new vector
See Also#
VECNEST, Vectors and Parallel Data, Vec, VecType, VecCreate(), MatCreateNest(), DMSetVecType()
Level#
advanced
Location#
Examples#
src/vec/vec/tests/ex37.c
src/vec/vec/tests/ex41.c
src/ksp/ksp/tests/ex22.c
src/ksp/ksp/tests/ex57.c
src/ksp/ksp/tests/ex83.c
src/snes/tests/ex17.c
src/ts/tests/ex2.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages