<div dir="ltr"><div><div><div>Great <br><br>To be honest, I think the only way to "find" these options is to either do one of the following:<br></div><br>1) Run with -ksp_view and very carefully go through the hierarchy of the multi-level preconditioner. This immediately shows the prefixes of nested objects (like "est") and then you can see how to configure those nested objects.<br>
<br></div>2) When I have no idea what prefixes might be defined in a petsc code, I run with -help and trawl through it. Once I have isolated a prefix of interest, I use -help and grep to narrow down all the options which are connected with that particular solver.<br>
<br></div>These are the only ways I know how to explore very complicated solver configurations. As you can see, I miss spell option names from time to time. Thus when debugging solver configuration, I also always use <br>
  -options_left 1<br><div>to indicate whether I used an option that PETSc didn't recgonize.<br></div><div><br><br></div><div>Cheers,<br></div><div>  Dave<br></div><div><br><div> <br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 23 January 2014 16:18, Garth N. Wells <span dir="ltr"><<a href="mailto:gnw20@cam.ac.uk" target="_blank">gnw20@cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2014-01-23 14:54, Dave May wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you don't have any prefix set on the outer KSP, you should be able<br>
to simply do<br>
<br>
-mg_levels_ksp_type chebychev<br>
-mg_levels_ksp_chebychev_<u></u>estimate_eigenvalues 0,0.2,0,1.1<br>
-mg_levels_est_ksp_type cg<br>
 -mg_levels_est_ksp_max_it X<br>
<br>
</blockquote>
<br></div>
Thanks. Last two are what I was looking for and I can confirm that they work as expected.<br>
<br>
It would be helpful is last two options could be (easily) found in the docs - I couldn't find them.<span class="HOEnZb"><font color="#888888"><br>
<br>
Garth</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
  Dave<br>
<br>
On 23 January 2014 15:49, Garth N. Wells <<a href="mailto:gnw20@cam.ac.uk" target="_blank">gnw20@cam.ac.uk</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2014-01-23 14:32, Matthew Knepley wrote:<br>
On Thu, Jan 23, 2014 at 5:35 AM, Garth N. Wells <<a href="mailto:gnw20@cam.ac.uk" target="_blank">gnw20@cam.ac.uk</a>><br>
wrote:<br>
<br>
Is there are command line option to set the number of iterations<br>
used for the eigenvalue estimation inside the Chebyshev<br>
preconditioner?  "-gamg_est_ksp_max_it" does the trick with GAMG,<br>
but I'd also like to change the number of iterations when using<br>
Chebyshev smoothing with ML.<br>
<br>
In GAMG, we use PETSc itself to do the estimate, and give it the<br>
prefix gamg_est_. In ML, as far as I can see from the code, we use<br>
the<br>
internal<br>
estimator, and I don't think they give us this knob.<br>
</blockquote>
<br>
 I'm not so interested in the what happens inside ML, but the<br>
Chebyshev smoother that PETSc applies. With the default 10 GMRES<br>
iterations, the eigenvalue estimate is not good enough for my problem,<br>
which leads to the outer CG breaking down with an indefinite operator<br>
error.<br>
<br>
 I can get it working by changing<br>
<br>
   -mg_levels_ksp_chebyshev_<u></u>estimate_eigenvalues<br>
<br>
 but I'd rather do a few more iterations to get a better eigenvalue<br>
estimate. It would also be nice to be able to switch from GMRES to CG.<br>
I can do this with GAMG via "-gamg_est_ksp_type"<br>
<br>
 Garth<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
   Matt<br>
 <br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Garth<br>
</blockquote>
<br>
--<br>
What most experimenters take for granted before they begin their<br>
experiments is infinitely more interesting than any results to<br>
which<br>
their experiments lead.<br>
 -- Norbert Wiener<br>
</blockquote></blockquote>
</div></div></blockquote></div><br></div>