[petsc-users] Nested Fieldsplit for custom index sets

Lawrence Mitchell lawrence.mitchell at imperial.ac.uk
Wed Jul 27 03:00:32 CDT 2016


> On 27 Jul 2016, at 03:54, Safin, Artur <aks084000 at utdallas.edu> wrote:
> 
> Barry,
> 
>> Do you have a call to KSPSetFromOptions() before the call PCFieldSplitGetSubKSP()? I am guessing not which means that the PC does not yet know that it is of type fieldplit.
> 
> Yes, I call KSPSetFromOptions() for the global matrix at the beginning of the code. Should I also do it for the ksp I obtain from PCFieldSplitGetSubKSP()?
> 
> The program has no problem doing fieldsplit for the global matrix; my issue is that I cannot get it to recognize a fieldsplit within a fieldsplit.

I think the SubKSPs (and therefore SubPCs) are not set up until you call KSPSetUp(ksp) which your code does not do explicitly and is therefore done in KSPSolve.

Cheers,

Lawrence
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160727/7ffdd275/attachment.pgp>


More information about the petsc-users mailing list