TaoAppSetMonitor

Sets an ADDITIONAL function that is to be used at every iteration of the solver to display the iteration's progress.

Synopsis

#include "tao.h"  
int TaoAppSetMonitor(TAO_APPLICATION taoapp,int (*mymonitor)(TAO_APPLICATION,void*),void *mctx)
Collective on TAO_APPLICATION

Input Parameters

taoapp - the TAO_APPLICATION solver context
mymonitor - monitoring routine
mctx - [optional] user-defined context for private data for the monitor routine (may be TAO_NULL)

Calling sequence of mymonitor

    int mymonitor(TAO_APPLICATION taoapp,void *mctx)

taoapp - the TAO_APPLICATION solver context
mctx - [optional] monitoring context

Note

Several different monitoring routines may be set by calling TaoAppSetMonitor() multiple times; all will be called in the order in which they were set.

Keywords

options, monitor, View

See Also

TaoSetMonitor(), TaoAppSetDestroyRoutine()

Level:intermediate
Location:src/petsctao/application/petscapp/tao_app.c
TAO Solver Index
Table of Contents

Examples

src/unconstrained/examples/tutorials/minsurf2.c.html