<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Patrick,
<div class=""><br class="">
</div>
<div class="">It worked, thank you!</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Cheers from Lugano,</div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Pietro </div>
</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">Il giorno 19-feb-2019, alle ore 16:19, Patrick Sanan <<a href="mailto:patrick.sanan@gmail.com" class="">patrick.sanan@gmail.com</a>> ha scritto:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">Will it work for you to use </div>
<div dir="ltr" class=""><br class="">
</div>
<div dir="ltr" class=""><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMGGetSmoother.html" class="">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMGGetSmoother.html</a></div>
<div dir="ltr" class=""><br class="">
</div>
<div dir="ltr" class="">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" class=""><br class="">
</div>
<div dir="ltr" class=""><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPSetTolerances.html" class="">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPSetTolerances.html</a><br class="">
</div>
<div dir="ltr" class=""><br class="">
</div>
<div class="">to set the maximum iterations?</div>
</div>
</div>
<br class="">
<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" class="">petsc-users@mcs.anl.gov</a>>:<br class="">
</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" class="">Dear PETSc team,
<div class=""><br class="">
</div>
<div class="">Is there a way to set the number of smoothing steps done inside a specific multigrid level l ?</div>
<div class="">Something like:</div>
<div class="">
<pre style="font-variant-ligatures:normal" class=""><a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/PCMG/PCMGSetNumberSmoothDown.html#PCMGSetNumberSmoothDown" target="_blank" class="">PCMGSetNumberSmoothDown</a>(<a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/PC/PC.html#PC" target="_blank" class="">PC</a> pc,<a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/Sys/PetscInt.html#PetscInt" target="_blank" class="">PetscInt</a> n, <a href="https://www.mcs.anl.gov/petsc/petsc-3.8/docs/manualpages/Sys/PetscInt.html#PetscInt" target="_blank" class="">PetscInt</a> l)</pre>
<div class=""><br class="">
</div>
</div>
<div class="">In this way I could, for example set 3 smoothing steps on level 1 and 7 smoothing steps on level 2.</div>
<div class=""><br class="">
</div>
<div class="">Thank you!</div>
<div class="">Pietro </div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>