:orphan: # VECNEST VECNEST = "nest" - Vector type consisting of nested subvectors, each stored separately. ## Notes This vector type reduces the number of copies for certain solvers applied to multi-physics problems. It is usually used with `MATNEST` and `DMCOMPOSITE` via `DMSetVecType()`. ## See Also [](ch_vectors), `Vec`, `VecType`, `VecCreate()`, `VecType`, `VecCreateNest()`, `MatCreateNest()` ## Level intermediate ## Location src/vec/vec/impls/nest/vecnest.c ## Examples src/ksp/ksp/tutorials/ex27.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/impls/nest/vecnest.c) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)