Lines Matching refs:npc
33 if (snes->npc) { in SNESApplyNPC()
34 if (f) PetscCall(SNESSetInitialFunction(snes->npc, f)); in SNESApplyNPC()
36 PetscCall(PetscLogEventBegin(SNES_NPCSolve, snes->npc, x, y, 0)); in SNESApplyNPC()
37 PetscCall(SNESSolve(snes->npc, snes->vec_rhs, y)); in SNESApplyNPC()
38 PetscCall(PetscLogEventEnd(SNES_NPCSolve, snes->npc, x, y, 0)); in SNESApplyNPC()
50 if (snes->npc) { in SNESComputeFunctionDefaultNPC()
52 PetscCall(SNESGetConvergedReason(snes->npc, &reason)); in SNESComputeFunctionDefaultNPC()
87 …PetscCheck(snes->npc, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "No nonlinear preconditioner set"… in SNESGetNPCFunction()
88 PetscCall(SNESGetNPCSide(snes->npc, &npcside)); in SNESGetNPCFunction()
89 PetscCall(SNESGetFunctionType(snes->npc, &functype)); in SNESGetNPCFunction()
90 PetscCall(SNESGetNormSchedule(snes->npc, &normschedule)); in SNESGetNPCFunction()
94 PetscCall(SNESGetFunction(snes->npc, &FPC, NULL, NULL)); in SNESGetNPCFunction()
99 PetscCall(SNESGetSolution(snes->npc, &XPC)); in SNESGetNPCFunction()
101 PetscCall(SNESComputeFunction(snes->npc, XPC, F)); in SNESGetNPCFunction()