tao-2.1-p0 2012-07-24

TaoGetHistory

Gets the array used to hold the convergence history.

Synopsis

#include "taosolver.h" 
PetscErrorCode TaoGetHistory(TaoSolver tao, PetscReal **obj, PetscReal **resid, PetscReal **cnorm, PetscInt *nhist)
Collective on TaoSolver

Input Parameter

tao -the TaoSolver context

Output Parameters

obj - array used to hold objective value history
resid - array used to hold residual history
cnorm - array used to hold constraint violation history
nhist - size of obj, resid, and cnorm (will be less than or equal to na given in TaoSetHistory)

Notes

The calling sequence for this routine in Fortran is
  call TaoGetHistory(TaoSolver tao, integer nhist, integer info)

This routine is useful, e.g., when running a code for purposes of accurate performance monitoring, when no I/O should be done during the section of code that is being timed.

See Also

TaoSetHistory()

Level:advanced
Location:src/interface/taosolver.c
TAO Solver Index
Table of Contents

Examples

src/leastsquares/examples/tutorials/chwirut1.c.html
src/leastsquares/examples/tutorials/chwirut1f.F.html
src/pde_constrained/examples/tutorials/elliptic.c.html
src/pde_constrained/examples/tutorials/parabolic.c.html
src/pde_constrained/examples/tutorials/hyperbolic.c.html