Home
last modified time | relevance | path

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

/petsc/src/ksp/ksp/impls/qcg/
H A Dqcg.c20 …scErrorCode KSPQCGQuadraticRoots(Vec s, Vec p, PetscReal delta, PetscReal *step1, PetscReal *step2) in KSPQCGQuadraticRoots() argument
31 *step2 = -(pts + rad) / ptp; in KSPQCGQuadraticRoots()
32 *step1 = (sts - dsq) / (ptp * *step2); 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()
231 q2 = step2 * (bstp + wtasp + .5 * step2 * ptasp); in KSPSolve_QCG()
235 PetscCall(VecAXPY(X, step2, P)); in KSPSolve_QCG()
243 …gative curvature: step1=%g, step2=%g, delta=%g\n", (double)step1, (double)step2, (double)pcgP->del… in KSPSolve_QCG()
264 PetscCall(KSPQCGQuadraticRoots(W, P, pcgP->delta, &step1, &step2)); in KSPSolve_QCG()
[all …]
/petsc/src/tao/constrained/impls/ipm/
H A Dipm.h45 VecScatter step1, step2, step3, step4; member
H A Dipm.c397 PetscCall(VecScatterCreate(ipmP->bigstep, sis, ipmP->s, is1, &ipmP->step2)); in IPMInitializeBounds()
477 PetscCall(VecScatterDestroy(&ipmP->step2)); in TaoDestroy_IPM()
1016 PetscCall(VecScatterBegin(ipmP->step2, STEP, X2, INSERT_VALUES, SCATTER_FORWARD)); in IPMScatterStep()
1017 PetscCall(VecScatterEnd(ipmP->step2, STEP, X2, INSERT_VALUES, SCATTER_FORWARD)); in IPMScatterStep()