Lines Matching refs:subsolver

11   PetscCall(MatMult(gn->subsolver->ls_jac, in, gn->r_work));  in GNHessianProd()
12 PetscCall(MatMultTranspose(gn->subsolver->ls_jac, gn->r_work, out)); in GNHessianProd()
333 PetscCall(TaoSolve(gn->subsolver)); in TaoSolve_BRGN()
335 tao->nfuncs = gn->subsolver->nfuncs; in TaoSolve_BRGN()
336 tao->ngrads = gn->subsolver->ngrads; in TaoSolve_BRGN()
337 tao->nfuncgrads = gn->subsolver->nfuncgrads; in TaoSolve_BRGN()
338 tao->nhess = gn->subsolver->nhess; in TaoSolve_BRGN()
339 tao->niter = gn->subsolver->niter; in TaoSolve_BRGN()
340 tao->ksp_its = gn->subsolver->ksp_its; in TaoSolve_BRGN()
341 tao->ksp_tot_its = gn->subsolver->ksp_tot_its; in TaoSolve_BRGN()
342 PetscCall(TaoGetConvergedReason(gn->subsolver, &tao->reason)); in TaoSolve_BRGN()
344 PetscCall(VecCopy(gn->subsolver->solution, tao->solution)); in TaoSolve_BRGN()
345 PetscCall(VecCopy(gn->subsolver->gradient, tao->gradient)); in TaoSolve_BRGN()
365 PetscCall(TaoGetLineSearch(gn->subsolver, &ls)); in TaoSetFromOptions_BRGN()
368 PetscCall(TaoSetFromOptions(gn->subsolver)); in TaoSetFromOptions_BRGN()
400 PetscCall(TaoView(gn->subsolver, viewer)); in TaoView_BRGN()
413 PetscCall(PetscObjectTypeCompare((PetscObject)gn->subsolver, TAOBNLS, &is_bnls)); in TaoSetUp_BRGN()
414 PetscCall(PetscObjectTypeCompare((PetscObject)gn->subsolver, TAOBNTR, &is_bntr)); in TaoSetUp_BRGN()
415 PetscCall(PetscObjectTypeCompare((PetscObject)gn->subsolver, TAOBNTL, &is_bntl)); in TaoSetUp_BRGN()
463 PetscCall(TaoSetUpdate(gn->subsolver, GNHookFunction, gn)); in TaoSetUp_BRGN()
464 PetscCall(TaoSetSolution(gn->subsolver, tao->solution)); in TaoSetUp_BRGN()
465 if (tao->bounded) PetscCall(TaoSetVariableBounds(gn->subsolver, tao->XL, tao->XU)); in TaoSetUp_BRGN()
466 …PetscCall(TaoSetResidualRoutine(gn->subsolver, tao->ls_res, tao->ops->computeresidual, tao->user_l… in TaoSetUp_BRGN()
467 …PetscCall(TaoSetJacobianResidualRoutine(gn->subsolver, tao->ls_jac, tao->ls_jac, tao->ops->compute… in TaoSetUp_BRGN()
468 PetscCall(TaoSetObjectiveAndGradient(gn->subsolver, NULL, GNObjectiveGradientEval, gn)); in TaoSetUp_BRGN()
469 PetscCall(TaoSetHessian(gn->subsolver, gn->H, gn->H, GNComputeHessian, gn)); in TaoSetUp_BRGN()
471 PetscCall(TaoSetTolerances(gn->subsolver, tao->gatol, tao->grtol, tao->gttol)); in TaoSetUp_BRGN()
472 PetscCall(TaoSetMaximumIterations(gn->subsolver, tao->max_it)); in TaoSetUp_BRGN()
473 PetscCall(TaoSetMaximumFunctionEvaluations(gn->subsolver, tao->max_funcs)); in TaoSetUp_BRGN()
474 PetscCall(TaoSetUp(gn->subsolver)); in TaoSetUp_BRGN()
498 PetscCall(TaoDestroy(&gn->subsolver)); in TaoDestroy_BRGN()
526 PetscErrorCode TaoBRGNGetSubsolver(Tao tao, Tao *subsolver) in TaoBRGNGetSubsolver() argument
530 PetscUseMethod((PetscObject)tao, "TaoBRGNGetSubsolver_C", (Tao, Tao *), (tao, subsolver)); in TaoBRGNGetSubsolver()
534 static PetscErrorCode TaoBRGNGetSubsolver_BRGN(Tao tao, Tao *subsolver) in TaoBRGNGetSubsolver_BRGN() argument
539 *subsolver = gn->subsolver; in TaoBRGNGetSubsolver_BRGN()
768 PetscCall(TaoCreate(PetscObjectComm((PetscObject)tao), &gn->subsolver)); in TaoCreate_BRGN()
769 PetscCall(TaoSetType(gn->subsolver, TAOBNLS)); in TaoCreate_BRGN()
770 PetscCall(TaoSetOptionsPrefix(gn->subsolver, "tao_brgn_subsolver_")); in TaoCreate_BRGN()