Home
last modified time | relevance | path

Searched refs:computegradient (Results 1 – 8 of 8) sorted by relevance

/petsc/src/tao/interface/
H A Dtaosolver_fg.c138 if (tao->ops->computegradient) { in TaoComputeGradient()
140 … PetscCallBack("Tao callback gradient", (*tao->ops->computegradient)(tao, X, G, tao->user_gradP)); in TaoComputeGradient()
235 if (tao->ops->computegradient == TaoDefaultComputeGradient) { in TaoComputeObjectiveAndGradient()
241 } else if (tao->ops->computeobjective && tao->ops->computegradient) { in TaoComputeObjectiveAndGradient()
247 … PetscCallBack("Tao callback gradient", (*tao->ops->computegradient)(tao, X, G, tao->user_gradP)); in TaoComputeObjectiveAndGradient()
478 if (func) tao->ops->computegradient = func; in TaoSetGradient()
511 if (func) *func = tao->ops->computegradient; in TaoGetGradient()
641 if (tao->ops->computegradient == NULL) *flg = PETSC_FALSE; in TaoIsGradientDefined()
/petsc/include/petsc/private/
H A Dtaolinesearchimpl.h9 PetscErrorCode (*computegradient)(TaoLineSearch, Vec, Vec, void *); member
H A Dpetscfvimpl.h67 PetscErrorCode (*computegradient)(PetscFV, PetscInt, const PetscScalar[], PetscScalar[]); member
H A Dtaoimpl.h16 PetscErrorCode (*computegradient)(Tao, Vec, Vec, void *); member
/petsc/src/tao/linesearch/interface/
H A Dtaolinesearch.c184 if (ls->ops->computegradient) { in TaoLineSearchSetUp()
672 ls->ops->computegradient = func; in TaoLineSearchSetGradientRoutine()
877 …PetscCallBack("TaoLineSearch callback gradient", (*ls->ops->computegradient)(ls, x, g, ls->userctx… in TaoLineSearchComputeObjectiveAndGradient()
920 …if (ls->ops->computegradient) PetscCallBack("TaoLineSearch callback gradient", (*ls->ops->computeg… in TaoLineSearchComputeGradient()
/petsc/src/dm/dt/fv/interface/
H A Dfv.c1704 PetscTryTypeMethod(fvm, computegradient, numFaces, dx, grad); in PetscFVComputeGradient()
1940 fvm->ops->computegradient = PetscFVComputeGradient_Upwind; in PetscFVInitialize_Upwind()
2242 fvm->ops->computegradient = PetscFVComputeGradient_LeastSquares; in PetscFVInitialize_LeastSquares()
/petsc/src/binding/petsc4py/src/lib-petsc/
H A Dcustom.h630 *flg = (PetscBool)(tao->ops->computegradient || tao->ops->computeobjectiveandgradient); in TaoHasGradientRoutine()
/petsc/src/tao/bound/impls/bnk/
H A Dbnk.c1021 PetscCall(TaoSetGradient(bnk->bncg, NULL, tao->ops->computegradient, tao->user_gradP)); in TaoSetUp_BNK()