[petsc-users] How to solve option conflict during several KSP object

Sean Farley sean at mcs.anl.gov
Mon Mar 26 00:52:11 CDT 2012


>
> I created several KSP objects, each solves different problem.
> Some problems are well conditioned, thus GMRES+ASM(ilu) works well.
> However, there's a bad conditioned problem. I have to use GMRES + ASM(lu).
>
> The problem is I set the KSP and PC BEFORE matrix assembled.
> For this situation, I can not call KSPSetUp then PCASMGetSubKSP to set
> each KSP/PC for local block.
> At the same time, set sub pc by petsc options i.e
> PetscOptionsSetValue("-sub_pc_type","lu")
> will cause conflict since options are global.


http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/KSP/KSPSetOptionsPrefix.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120326/8195e9c1/attachment.htm>


More information about the petsc-users mailing list