petsc-3.9.4 2018-09-11
VecSetDM
Sets the DM defining the data layout of the vector.
Synopsis
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode VecSetDM(Vec v, DM dm)
Not collective
Input Parameters
Note: This is NOT the same as DMCreateGlobalVector() since it does not change the view methods or perform other customization, but merely sets the DM member.
See Also
VecGetDM(), DMGetLocalVector(), DMGetGlobalVector(), DMSetVecType()
Level
intermediate
Location
src/dm/interface/dm.c
Examples
src/ksp/ksp/examples/tutorials/ex43.c.html
src/ksp/ksp/examples/tutorials/ex65.c.html
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages