petsc-3.7.1 2016-05-15
Report Typos and Errors

DMGlobalToLocalHookAdd

adds a callback to be run when global to local is called

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
PetscErrorCode DMGlobalToLocalHookAdd(DM dm,PetscErrorCode (*beginhook)(DM,Vec,InsertMode,Vec,void*),PetscErrorCode (*endhook)(DM,Vec,InsertMode,Vec,void*),void *ctx)
Logically Collective Many br

Input Arguments

dm - the DM Many br
beginhook - function to run at the beginning of DMGlobalToLocalBegin() Many br
endhook - function to run after DMGlobalToLocalEnd() has completed Many br
ctx - [optional] user-defined context for provide data for the hooks (may be NULL) Many br

Calling sequence for beginhook

   beginhook(DM fine,VecScatter out,VecScatter in,DM coarse,void *ctx)

dm - global DM Many br
g - global vector Many br
mode - mode Many br
l - local vector Many br
ctx - optional user-defined function context Many br

Calling sequence for endhook

   endhook(DM fine,VecScatter out,VecScatter in,DM coarse,void *ctx)

global - global DM Many br
ctx - optional user-defined function context Many br

Many br

See Also

DMRefineHookAdd(), SNESFASGetInterpolation(), SNESFASGetInjection(), PetscObjectCompose(), PetscContainerCreate()

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