Lines Matching refs:smoothd
12 PetscCall(SNESDestroy(&fas->smoothd)); in SNESReset_FAS()
101 if (!fas->smoothd) PetscCall(SNESFASCycleCreateSmoother_Private(snes, &fas->smoothd)); in SNESSetUp_FAS()
106 PetscCall(SNESSetDM(fas->smoothd, snes->dm)); in SNESSetUp_FAS()
139 …if (fas->smoothd && fas->level != fas->levels - 1) PetscCall(SNESSetFunction(fas->smoothd, NULL, S… in SNESSetUp_FAS()
144 if (fas->smoothd) { in SNESSetUp_FAS()
146 PetscCall(SNESSetNormSchedule(fas->smoothd, SNES_NORM_ALWAYS)); in SNESSetUp_FAS()
148 PetscCall(SNESSetNormSchedule(fas->smoothd, SNES_NORM_FINAL_ONLY)); in SNESSetUp_FAS()
150 PetscCall(SNESFASCycleSetUpSmoother_Private(snes, fas->smoothd)); in SNESSetUp_FAS()
272 SNES smoothu, smoothd, levelsnes; in SNESView_FAS() local
289 PetscCall(SNESFASCycleGetSmootherDown(levelsnes, &smoothd)); in SNESView_FAS()
296 if (smoothd) { in SNESView_FAS()
297 PetscCall(SNESView(smoothd, viewer)); in SNESView_FAS()
302 if (i && (smoothd == smoothu)) { in SNESView_FAS()
326 if (curfas->smoothd) PetscCall(SNESView(curfas->smoothd, viewer)); in SNESView_FAS()
331 if (curfas->smoothd) PetscCall(SNESView(curfas->smoothd, viewer)); in SNESView_FAS()
354 SNES smoothd; in SNESFASDownSmooth_Private() local
359 PetscCall(SNESFASCycleGetSmootherDown(snes, &smoothd)); in SNESFASDownSmooth_Private()
360 PetscCall(SNESSetInitialFunction(smoothd, F)); in SNESFASDownSmooth_Private()
361 if (fas->eventsmoothsolve) PetscCall(PetscLogEventBegin(fas->eventsmoothsolve, smoothd, B, X, 0)); in SNESFASDownSmooth_Private()
362 PetscCall(SNESSolve(smoothd, B, X)); in SNESFASDownSmooth_Private()
363 if (fas->eventsmoothsolve) PetscCall(PetscLogEventEnd(fas->eventsmoothsolve, smoothd, B, X, 0)); in SNESFASDownSmooth_Private()
365 PetscCall(SNESGetConvergedReason(smoothd, &reason)); in SNESFASDownSmooth_Private()
371 PetscCall(SNESGetFunction(smoothd, &FPC, NULL, NULL)); in SNESFASDownSmooth_Private()
372 PetscCall(SNESGetAlwaysComputesFinalResidual(smoothd, &flg)); in SNESFASDownSmooth_Private()
373 if (!flg) PetscCall(SNESComputeFunction(smoothd, X, FPC)); in SNESFASDownSmooth_Private()
964 fas->smoothd = NULL; in SNESCreate_FAS()