[petsc-users] PCMG: level dependent smoothing steps
Patrick Sanan
patrick.sanan at gmail.com
Tue Feb 19 09:19:02 CST 2019
Will it work for you to use
https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMGGetSmoother.html
to pull out the KSP for the level you're interested in (Note link to
PCMGGetSmootherDown() if you want to control up and down smoothers
separately) and then use
https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPSetTolerances.html
to set the maximum iterations?
Am Di., 19. Feb. 2019 um 16:07 Uhr schrieb Pietro Benedusi via petsc-users <
petsc-users at mcs.anl.gov>:
> Dear PETSc team,
>
> Is there a way to set the number of smoothing steps done inside a specific
> multigrid level l ?
> Something like:
>
> PCMGSetNumberSmoothDown <https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/PCMG/PCMGSetNumberSmoothDown.html#PCMGSetNumberSmoothDown>(PC <https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/PC/PC.html#PC> pc,PetscInt <https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/Sys/PetscInt.html#PetscInt> n, PetscInt <https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/Sys/PetscInt.html#PetscInt> l)
>
>
> In this way I could, for example set 3 smoothing steps on level 1 and 7
> smoothing steps on level 2.
>
> Thank you!
> Pietro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190219/7cfc4093/attachment.html>
More information about the petsc-users
mailing list