Lines Matching refs:norm_d
51 PetscReal norm_d = 0.0, e_min; in TaoSolve_NLS() local
282 PetscCall(KSPCGGetNormD(tao->ksp, &norm_d)); in TaoSolve_NLS()
286 if (norm_d > 0.0) { in TaoSolve_NLS()
287 tao->trust = norm_d; in TaoSolve_NLS()
306 PetscCall(KSPCGGetNormD(tao->ksp, &norm_d)); in TaoSolve_NLS()
308 PetscCheck(norm_d != 0.0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Initial direction zero"); in TaoSolve_NLS()
535 tao->trust = nlsP->omega1 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()
538 tao->trust = nlsP->omega2 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()
542 tao->trust = nlsP->omega3 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()
544 tao->trust = PetscMax(nlsP->omega3 * norm_d, tao->trust); in TaoSolve_NLS()
548 tao->trust = PetscMax(nlsP->omega4 * norm_d, tao->trust); in TaoSolve_NLS()
551 tao->trust = PetscMax(nlsP->omega5 * norm_d, tao->trust); in TaoSolve_NLS()
555 tao->trust = nlsP->omega1 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()
568 tao->trust = nlsP->alpha1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
571 tao->trust = nlsP->alpha1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
585 tao->trust = nlsP->alpha1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
588 tao->trust = nlsP->alpha2 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
592 tao->trust = nlsP->alpha3 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()
594 tao->trust = PetscMax(nlsP->alpha3 * norm_d, tao->trust); in TaoSolve_NLS()
598 tao->trust = PetscMax(nlsP->alpha4 * norm_d, tao->trust); in TaoSolve_NLS()
601 tao->trust = PetscMax(nlsP->alpha5 * norm_d, tao->trust); in TaoSolve_NLS()
607 tao->trust = nlsP->alpha1 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()
618 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
621 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
639 tao->trust = PetscMax(tao->trust, nlsP->gamma3 * norm_d); in TaoSolve_NLS()
641 tao->trust = PetscMax(tao->trust, nlsP->gamma4 * norm_d); in TaoSolve_NLS()
643 tao->trust = PetscMax(tao->trust, tau_max * norm_d); in TaoSolve_NLS()
649 tao->trust = nlsP->gamma2 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
651 tao->trust = PetscMax(tao->trust, nlsP->gamma3 * norm_d); in TaoSolve_NLS()
653 tao->trust = tau_max * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
655 tao->trust = PetscMax(tao->trust, tau_max * norm_d); in TaoSolve_NLS()
660 tao->trust = nlsP->gamma2 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
662 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
664 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
666 tao->trust = tau_1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
668 tao->trust = tau_2 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
670 tao->trust = tau_max * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
677 tao->trust = nlsP->gamma1 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()