PetscErrorCode DMStagVecSplitToDMDA(DM dm,Vec vec,DMStagStencilLocation loc,PetscInt c,DM *pda,Vec *pdavec)Logically Collective
High-level helper function which accepts a DMStag, a global vector, and location/dof, and generates a corresponding DMDA and Vec.
|dm||- the DMStag object|
|vec||- Vec object associated with dm|
|loc||- which subgrid to extract (see DMStagStencilLocation)|
|c||- which component to extract (see note below)|
|pda||- the new DMDA|
|pdavec||- the new Vec|
The caller is responsible for destroying the created DMDA and Vec.