TaoGetApplicationContext#

Gets the user-defined context for a Tao solver provided with TaoSetApplicationContext()

Synopsis#

#include "petsctao.h" 
PetscErrorCode TaoGetApplicationContext(Tao tao, PetscCtxRt ctx)

Not Collective

Input Parameter#

  • tao - the Tao context

Output Parameter#

  • ctx - a pointer to the user context

Fortran Note#

This only works when the context is a Fortran derived type or a PetscObject. Define ctx with

  type(tUsertype), pointer :: ctx

See Also#

TAO: Optimization Solvers, Tao, TaoSetApplicationContext()

Level#

intermediate

Location#

src/tao/interface/taosolver.c


Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages