TaoSetApplicationContext#
Sets the optional user-defined context for a Tao solver that can be accessed later, for example in the Tao callback functions with TaoGetApplicationContext()
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoSetApplicationContext(Tao tao, void *ctx)
Logically Collective
Input Parameters#
tao - the
Taocontextctx - the user context
Fortran Note#
This only works when ctx is a Fortran derived type (it cannot be a PetscObject), we recommend writing a Fortran interface definition for this
function that tells the Fortran compiler the derived data type that is passed in as the ctx argument. See TaoGetApplicationContext() for
an example.
See Also#
Level#
intermediate
Location#
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages