PISM, A Parallel Ice Sheet Model
stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
|
Adaptor to connect a TAO objective function callback to a C++ object method. More...
#include <TaoUtil.hh>
Static Public Member Functions | |
static void | connect (Tao tao, Problem &p, Vec c, Mat Jc, Mat Jd, Mat Jcpc=NULL, Mat Jcinv=NULL) |
Static Protected Member Functions | |
static PetscErrorCode | constraints_callback (Tao tao, Vec x, Vec c, void *ctx) |
static PetscErrorCode | jacobian_state_callback (Tao tao, Vec x, Mat J, Mat Jpc, Mat Jinv, void *ctx) |
static PetscErrorCode | jacobian_design_callback (Tao tao, Vec x, Mat J, void *ctx) |
Adaptor to connect a TAO objective function callback to a C++ object method.
The TAO library interfaces with user code via C-style callback functions. This class makes it convenient to associate a TAO Linearly Constrained Augmented Lagrangian (LCL) callbacks with C++ object methods. To assign
as the LCL callbacks to a Tao
tao
,
The method names for the callback (evaluateConstraints
, etc.) are hard-coded.
Definition at line 457 of file TaoUtil.hh.