[petsc-users] PCMG: level dependent smoothing steps

Pietro Benedusi pietro.benedusi at usi.ch
Tue Feb 19 09:28:44 CST 2019


Hi Patrick,

It worked, thank you!

Cheers from Lugano,
Pietro

Il giorno 19-feb-2019, alle ore 16:19, Patrick Sanan <patrick.sanan at gmail.com<mailto:patrick.sanan at gmail.com>> ha scritto:

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<mailto: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/1c1e46dd/attachment-0001.html>


More information about the petsc-users mailing list