Home
last modified time | relevance | path

Searched refs:smoothu (Results 1 – 7 of 7) sorted by relevance

/petsc/src/snes/impls/fas/
H A Dfasfunc.c211 …if (!fas->smoothu && fas->level != 0) PetscCall(SNESFASCycleCreateSmoother_Private(snes, &fas->smo… in SNESFASSetNumberSmoothUp()
212 …if (fas->smoothu) PetscCall(SNESSetTolerances(fas->smoothu, fas->smoothu->abstol, fas->smoothu->rt… in SNESFASSetNumberSmoothUp()
278 if (!fas->smoothu) PetscCall(SNESFASCycleCreateSmoother_Private(snes, &fas->smoothu)); in SNESFASSetContinuation()
280 PetscCall(SNESSetOptionsPrefix(fas->smoothu, optionsprefix)); in SNESFASSetContinuation()
281 PetscCall(SNESAppendOptionsPrefix(fas->smoothu, tprefix)); in SNESFASSetContinuation()
282 PetscCall(SNESSetType(fas->smoothu, SNESNEWTONLS)); in SNESFASSetContinuation()
283 …PetscCall(SNESSetTolerances(fas->smoothu, fas->fine->abstol, fas->fine->rtol, fas->fine->stol, 50,… in SNESFASSetContinuation()
526 PetscErrorCode SNESFASCycleGetSmootherUp(SNES snes, SNES *smoothu) in SNESFASCycleGetSmootherUp() argument
532 PetscAssertPointer(smoothu, 2); in SNESFASCycleGetSmootherUp()
534 if (!fas->smoothu) *smoothu = fas->smoothd; in SNESFASCycleGetSmootherUp()
[all …]
H A Dfas.c11 PetscCall(SNESDestroy(&fas->smoothu)); in SNESReset_FAS()
105 if (fas->smoothu) PetscCall(SNESSetDM(fas->smoothu, snes->dm)); in SNESSetUp_FAS()
140 …if (fas->smoothu && fas->level != fas->levels - 1) PetscCall(SNESSetFunction(fas->smoothu, NULL, S… in SNESSetUp_FAS()
154 if (fas->smoothu) { in SNESSetUp_FAS()
156 PetscCall(SNESSetNormSchedule(fas->smoothu, SNES_NORM_NONE)); in SNESSetUp_FAS()
158 PetscCall(SNESSetNormSchedule(fas->smoothu, SNES_NORM_FINAL_ONLY)); in SNESSetUp_FAS()
160 PetscCall(SNESFASCycleSetUpSmoother_Private(snes, fas->smoothu)); in SNESSetUp_FAS()
272 SNES smoothu, smoothd, levelsnes; in SNESView_FAS() local
288 PetscCall(SNESFASCycleGetSmootherUp(levelsnes, &smoothu)); in SNESView_FAS()
302 if (i && (smoothd == smoothu)) { in SNESView_FAS()
[all …]
H A Dfasimpls.h13 SNES smoothu; /* the SNES for presmoothing */ member
/petsc/src/ksp/pc/impls/mg/
H A Dmg.c32 …PetscCall(KSPSolveTranspose(mglevels->smoothu, mglevels->b, mglevels->x)); /* transpose of post-sm… in PCMGMCycle_Private()
33 PetscCall(KSPCheckSolve(mglevels->smoothu, pc, mglevels->x)); in PCMGMCycle_Private()
96 PetscCall(KSPMatSolve(mglevels->smoothu, mglevels->B, mglevels->X)); /* post smooth */ in PCMGMCycle_Private()
97 PetscCall(KSPCheckSolve(mglevels->smoothu, pc, NULL)); in PCMGMCycle_Private()
99 PetscCall(KSPSolve(mglevels->smoothu, mglevels->b, mglevels->x)); /* post smooth */ in PCMGMCycle_Private()
100 PetscCall(KSPCheckSolve(mglevels->smoothu, pc, mglevels->x)); in PCMGMCycle_Private()
136 PetscCall(KSPGetOperators(mglevels[i]->smoothu, &mglevels[i]->A, NULL)); in PCApplyRichardson_MG()
143 PetscCall(KSPGetPC(mglevels[levels - 1]->smoothu, &tpc)); in PCApplyRichardson_MG()
180 … PetscCall(KSPSetTolerances(mglevels[i]->smoothu, 0, PETSC_CURRENT, PETSC_CURRENT, PETSC_CURRENT)); in PCApplyRichardson_MG()
181 if (mglevels[i]->smoothu != mglevels[i]->smoothd) { in PCApplyRichardson_MG()
[all …]
H A Dmgfunc.c587 if (mglevels[l]->smoothu == mglevels[l]->smoothd) { in PCMGGetSmootherUp()
602 PetscCall(KSPCreate(comm, &mglevels[l]->smoothu)); in PCMGGetSmootherUp()
603 PetscCall(KSPSetNestLevel(mglevels[l]->smoothu, pc->kspnestlevel)); in PCMGGetSmootherUp()
604 PetscCall(KSPSetErrorIfNotConverged(mglevels[l]->smoothu, pc->erroriffailure)); in PCMGGetSmootherUp()
605 …PetscCall(PetscObjectIncrementTabLevel((PetscObject)mglevels[l]->smoothu, (PetscObject)pc, mglevel… in PCMGGetSmootherUp()
606 PetscCall(KSPSetOptionsPrefix(mglevels[l]->smoothu, prefix)); in PCMGGetSmootherUp()
607 PetscCall(KSPSetTolerances(mglevels[l]->smoothu, rtol, abstol, dtol, maxits)); in PCMGGetSmootherUp()
608 PetscCall(KSPSetType(mglevels[l]->smoothu, ksptype)); in PCMGGetSmootherUp()
609 PetscCall(KSPSetNormType(mglevels[l]->smoothu, normtype)); in PCMGGetSmootherUp()
610 PetscCall(KSPSetConvergenceTest(mglevels[l]->smoothu, KSPConvergedSkip, NULL, NULL)); in PCMGGetSmootherUp()
[all …]
H A Dsmg.c45 PetscCall(KSPSolveTranspose(mglevels[i]->smoothu, mglevels[i]->b, mglevels[i]->x)); in PCMGACycle_Private()
46 PetscCall(KSPCheckSolve(mglevels[i]->smoothu, pc, mglevels[i]->x)); in PCMGACycle_Private()
/petsc/include/petsc/private/
H A Dpcmgimpl.h36 KSP smoothu; /* post smoother */ member