Searched refs:step1 (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ksp/ksp/impls/qcg/ |
| H A D | qcg.c | 20 static PetscErrorCode KSPQCGQuadraticRoots(Vec s, Vec p, PetscReal delta, PetscReal *step1, PetscRe… in KSPQCGQuadraticRoots() argument 32 *step1 = (sts - dsq) / (ptp * *step2); in KSPQCGQuadraticRoots() 34 *step1 = -(pts - rad) / ptp; in KSPQCGQuadraticRoots() 35 *step2 = (sts - dsq) / (ptp * *step1); in KSPQCGQuadraticRoots() 149 PetscReal q1, q2, xnorm, step1, step2, rnrm = 0.0, btx, xtax; in KSPSolve_QCG() local 226 PetscCall(KSPQCGQuadraticRoots(W, P, pcgP->delta, &step1, &step2)); in KSPSolve_QCG() 230 q1 = step1 * (bstp + wtasp + .5 * step1 * ptasp); in KSPSolve_QCG() 233 PetscCall(VecAXPY(X, step1, P)); in KSPSolve_QCG() 243 …scInfo(ksp, "negative curvature: step1=%g, step2=%g, delta=%g\n", (double)step1, (double)step2, (d… in KSPSolve_QCG() 264 PetscCall(KSPQCGQuadraticRoots(W, P, pcgP->delta, &step1, &step2)); in KSPSolve_QCG() [all …]
|
| /petsc/src/tao/constrained/impls/ipm/ |
| H A D | ipm.h | 45 VecScatter step1, step2, step3, step4; member
|
| H A D | ipm.c | 385 PetscCall(VecScatterCreate(ipmP->bigstep, sis, tao->solution, is1, &ipmP->step1)); in IPMInitializeBounds() 476 PetscCall(VecScatterDestroy(&ipmP->step1)); in TaoDestroy_IPM() 1012 PetscCall(VecScatterBegin(ipmP->step1, STEP, X1, INSERT_VALUES, SCATTER_FORWARD)); in IPMScatterStep() 1013 PetscCall(VecScatterEnd(ipmP->step1, STEP, X1, INSERT_VALUES, SCATTER_FORWARD)); in IPMScatterStep()
|