#include "taodaapplication.h" int DAAppSetGradientRoutine(TAO_APPLICATION daapplication, int (*grad)(TAO_APPLICATION,DA,Vec,Vec, void*),void *ctx)Collective on TAO_APPLICATION
daapplication | - the DA Application object | |
grad | - the function pointer for the gradient evaluation routine | |
ctx | - the gradient context |
grad(TAO_APPLICATION daapplication,DA da, Vec x,Vec g,void *ctx);
daapplication | - the TAO_APPLICATION context | |
da | - the Distributed Array | |
x | - input vector | |
g | - gradient vector | |
ctx | - user defined gradient context set from DAAppSetGradientRoutine() |
Level:intermediate
Location:src/petsctao/gridapplication/interface/daapp.c
TAO DA Application Index
Table of Contents