<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I created several KSP objects, each solves different problem.<br>
Some problems are well conditioned, thus GMRES+ASM(ilu) works well.<br>
However, there's a bad conditioned problem. I have to use GMRES + ASM(lu).<br>
<br>
The problem is I set the KSP and PC BEFORE matrix assembled.<br>
For this situation, I can not call KSPSetUp then PCASMGetSubKSP to set each KSP/PC for local block.<br>
At the same time, set sub pc by petsc options i.e<br>
PetscOptionsSetValue("-sub_pc_type","lu")<br>
will cause conflict since options are global.</blockquote><div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/KSP/KSPSetOptionsPrefix.html">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/KSP/KSPSetOptionsPrefix.html</a> </div>
</div>