<div dir="ltr"><div dir="ltr"><div dir="ltr">Will it work for you to use </div><div dir="ltr"><br></div><div dir="ltr"><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMGGetSmoother.html">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMGGetSmoother.html</a></div><div dir="ltr"><br></div><div dir="ltr">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 </div><div dir="ltr"><br></div><div dir="ltr"><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPSetTolerances.html">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPSetTolerances.html</a><br></div><div dir="ltr"><br></div><div>to set the maximum iterations?</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 19. Feb. 2019 um 16:07 Uhr schrieb Pietro Benedusi via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word">
Dear PETSc team,
<div><br>
</div>
<div>Is there a way to set the number of smoothing steps done inside a specific multigrid level l ?</div>
<div>Something like:</div>
<div>
<pre style="font-variant-ligatures:normal"><a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/PCMG/PCMGSetNumberSmoothDown.html#PCMGSetNumberSmoothDown" target="_blank">PCMGSetNumberSmoothDown</a>(<a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/PC/PC.html#PC" target="_blank">PC</a> pc,<a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/Sys/PetscInt.html#PetscInt" target="_blank">PetscInt</a> n, <a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/Sys/PetscInt.html#PetscInt" target="_blank">PetscInt</a> l)</pre>
<div><br>
</div>
</div>
<div>In this way I could, for example set 3 smoothing steps on level 1 and 7 smoothing steps on level 2.</div>
<div><br>
</div>
<div>Thank you!</div>
<div>Pietro </div>
</div>
</blockquote></div>