DAAppSetAfterMonitor

Set a routine that will be called after the optimization on each grid.

Synopsis

#include "taodaapplication.h" 
int DAAppSetAfterMonitor(TAO_APPLICATION daapplication, int (*aftermonitor)(TAO_APPLICATION,DA,int, void*), void *ctx)
Collective on TAO_APPLICATION

Input Parameters

daapplication - the DA Application object
aftermonitor - a monitor routine called after solving the application on each DA
ctx - the monitor context

Calling sequence of monitor

    aftermonitor(TAO_APPLICATION daapplication, DA da, int level, void *ctx);

daapplication - this TAO_APPLICATION context
da - the Distributed Array
level - the grid level that will be solved next (level 0 is coarsest)
ctx - user-defined function context set from DAAppSetAfterMonitor()

Note

These monitors are different from the monitors that can be called after each iteration of the optimization algorithm.

Note

The beforemonitor and aftermonitor are good for setting up and destroying the application data.

Keywords

DA, monitor

See Also

DAAppSetBeforeMonitor(), TaoSetMonitor(), TaoAppSetMonitor();

Level:intermediate
Location:src/petsctao/gridapplication/interface/daapp.c
TAO DA Application Index
Table of Contents

Examples

src/petsctao/gridapplication/examples/jbearing3.c.html