petsc-dev 2014-07-21
Report Typos and Errors

TaoGetHistory

Gets the array used to hold the convergence history.

Synopsis

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

Input Parameter

tao -the Tao 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(Tao 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/tao/interface/taosolver.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages

Examples

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