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

DMLocalToGlobalHookAdd

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

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
PetscErrorCode DMLocalToGlobalHookAdd(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 DMLocalToGlobalBegin() Many br
endhook - function to run after DMLocalToGlobalEnd() 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,Vec l,InsertMode mode,Vec g,void *ctx)

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

Calling sequence for endhook

   endhook(DM fine,Vec l,InsertMode mode,Vec g,void *ctx)

global - global DM Many br
l - local vector Many br
mode - mode Many br
g - global vector 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