Lines Matching refs:Q
210 static PetscErrorCode SNESNewtonALComputeFunction_NEWTONAL(SNES snes, Vec X, Vec Q) in SNESNewtonALComputeFunction_NEWTONAL() argument
220 PetscCall(VecZeroEntries(Q)); in SNESNewtonALComputeFunction_NEWTONAL()
224 …PetscCallBack("SNES callback NewtonAL tangent load function", (*computealfunction)(snes, X, Q, ctx… in SNESNewtonALComputeFunction_NEWTONAL()
235 PetscCall(VecAXPY(Q, 1, al->vec_rhs_orig)); in SNESNewtonALComputeFunction_NEWTONAL()
260 PetscErrorCode SNESNewtonALComputeFunction(SNES snes, Vec X, Vec Q) in SNESNewtonALComputeFunction() argument
265 PetscValidHeaderSpecific(Q, VEC_CLASSID, 3); in SNESNewtonALComputeFunction()
267 PetscCheckSameComm(snes, 1, Q, 3); in SNESNewtonALComputeFunction()
269 PetscCall(PetscLogEventBegin(SNES_NewtonALEval, snes, X, Q, 0)); in SNESNewtonALComputeFunction()
270 PetscTryMethod(snes, "SNESNewtonALComputeFunction_C", (SNES, Vec, Vec), (snes, X, Q)); in SNESNewtonALComputeFunction()
271 PetscCall(PetscLogEventEnd(SNES_NewtonALEval, snes, X, Q, 0)); in SNESNewtonALComputeFunction()
288 Vec DeltaX, deltaX, X, R, Q, deltaX_Q, deltaX_R; in SNESSolve_NEWTONAL() local
313 Q = snes->work[0]; /* tangent load vector */ in SNESSolve_NEWTONAL()
332 PetscCall(SNESNewtonALComputeFunction(snes, X, Q)); in SNESSolve_NEWTONAL()
334 PetscCall(VecAXPY(R, 1, Q)); /* R <- R + Q */ in SNESSolve_NEWTONAL()
352 PetscCall(KSPSolve(snes->ksp, Q, deltaX_Q)); in SNESSolve_NEWTONAL()
478 PetscCall(SNESNewtonALComputeFunction(snes, X, Q)); in SNESSolve_NEWTONAL()