#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMGlobalToLocalHookAdd(DM dm,PetscErrorCode (*beginhook)(DM,Vec,InsertMode,Vec,void*),PetscErrorCode (*endhook)(DM,Vec,InsertMode,Vec,void*),void *ctx)Logically Collective
dm | - the DM | |
beginhook | - function to run at the beginning of DMGlobalToLocalBegin() | |
endhook | - function to run after DMGlobalToLocalEnd() has completed | |
ctx | - [optional] user-defined context for provide data for the hooks (may be NULL) |
beginhook(DM fine,VecScatter out,VecScatter in,DM coarse,void *ctx)
dm | - global DM | |
g | - global vector | |
mode | - mode | |
l | - local vector | |
ctx | - optional user-defined function context |
endhook(DM fine,VecScatter out,VecScatter in,DM coarse,void *ctx)
global | - global DM | |
ctx | - optional user-defined function context |
Level:advanced
Location:src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages