petsc-3.11.4 2019-09-28
Report Typos and Errors

DMStagMigrateVec

transfer a vector associated with a DMStag to a vector associated with a compatible DMStag

Synopsis

PetscErrorCode DMStagMigrateVec(DM dm,Vec vec,DM dmTo,Vec vecTo)
Collective

Input Parameters

dm - the source DMStag object
vec - the destination vector, compatible with dm
dmTo - the compatible destination DMStag object
vecTo - the destination vector, compatible with dmTo

Notes

Extra dof are ignored, and unfilled dof are zeroed. Currently only implemented to migrate global vectors to global vectors.

See Also

DMSTAG, DMStagCreateCompatibleDMStag(), DMGetCompatibility(), DMStagVecSplitToDMDA()

Level

advanced

Location

src/dm/impls/stag/stagutils.c

Examples

src/dm/impls/stag/examples/tutorials/ex1.c.html
src/dm/impls/stag/examples/tutorials/ex2.c.html
src/dm/impls/stag/examples/tutorials/ex3.c.html

Index of all DMSTAG routines
Table of Contents for all manual pages
Index of all manual pages