Home
last modified time | relevance | path

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

/petsc/src/binding/petsc4py/src/lib-petsc/
H A Dcustom.h661 PetscBool has_g; in TaoGetVecs() local
665 PetscCall(TaoHasGradientRoutine(tao,&has_g)); in TaoGetVecs()
668 if (has_g && !tao->gradient) PetscCall(VecDuplicate(tao->solution,&tao->gradient)); in TaoGetVecs()
669 *G = has_g ? tao->gradient : NULL; in TaoGetVecs()
672 if (has_g && !tao->stepdirection) PetscCall(VecDuplicate(tao->solution,&tao->stepdirection)); in TaoGetVecs()
673 *S = has_g ? tao->stepdirection : NULL; in TaoGetVecs()