On Tue, Aug 2, 2011 at 9:28 AM, Clemens Domanig <span dir="ltr">&lt;<a href="mailto:clemens.domanig@uibk.ac.at">clemens.domanig@uibk.ac.at</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
usually I&#39;m using MUMPS by puting &#39;-pc_factor_mat_solver_package mumps&#39; into the .petscrc.<br>
Now I want to change in runtime between MUMPS and non-MUMPS so I tried to turn it on with<br>
PCFactorSetMatSolverPackage( pre, MAT_SOLVER_MUMPS);<br>
but I doesn&#39;t have any effect.<br></blockquote><div><br></div><div>This is complicated because you have to set this at the right time during the solver setup process.</div><div>Command line arguments are much easier. However, you should call this after the preconditioner</div>
<div>type is set, but before it is setup.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I also have a problem with PCFactorGetMatSolverPackage(). How can I get back an output as described in the documentation that has the type &#39;const&#39;?<br></blockquote><div><br></div><div>What is the problem? I do not understand?</div>
<div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thx - Clemens<br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>