#include "petscdm.h" #include "petscdmplex.h" #include "petscksp.h" PetscErrorCode DMGlobalToLocalSolve(DM dm, Vec x, Vec y)collective
dm | - The DM object | |
x | - The local vector | |
y | - The global vector: the input value of globalVec is used as an initial guess |
Note: If the DM is of type DMPLEX, then y is the solution of L' * D * L * y = L' * D * x, where D is a diagonal mask that is 1 for every point in the union of the closures of the local cells and 0 otherwise. This difference is only relevant if there are anchor points that are not in the closure of any local cell (see DMPlexGetAnchors()/DMPlexSetAnchors()).
Level:advanced
Location:src/ksp/ksp/utils/dmproject.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages