<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote
cite="mid:CAM9tzSnvUqwwOUS9=B8Y0_fj_JAuxwfz+VX8eGM5O1_LKuRD4g@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
- Is there a certain order in setting these options? Can I set
it anywhere in my code e.g. after set -ksp_type?<br>
</blockquote>
<div><br>
</div>
<div>You can set it anywhere before PCSetFromOptions() which is
probably called via KSPSetFromOptions or SNESSetFromOptions().</div>
<div> </div>
</div>
</blockquote>
This could be one of the reason. I will check if there is any error
as well.<br>
<blockquote
cite="mid:CAM9tzSnvUqwwOUS9=B8Y0_fj_JAuxwfz+VX8eGM5O1_LKuRD4g@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<br>
The things I am trying to do is to reuse the solvers and
preconditioners for several equations and reset only their
solver/preconds type. If you have any advice, I would
appreciate.<br>
</blockquote>
<div><br>
</div>
<div>You are solving different equations several times and
trying to reuse? Or you are iterating on a nonlinear problem?</div>
<div> </div>
</div>
</blockquote>
The equations will be solved one after another. They are not solved
at the same time. Yes, it is iterative.<br>
<br>
Thank you for you advice.<br>
Jarunan<br>
<br>
</body>
</html>