[petsc-users] PCFIELDSPLIT question

Matthew Knepley knepley at gmail.com
Sun Jan 24 05:26:24 CST 2016


On Fri, Jan 22, 2016 at 2:19 PM, Hom Nath Gharti <hng.email at gmail.com>
wrote:

> Dear all,
>
> I am new to PcFieldSplit.
>
> I have a matrix formed using MATMPIAIJ. Is it possible to use
> PCFIELDSPLIT operations in this type of matrix? Or does it have to be
> MATMPIBIJ or MATNEST format?
>

Yes, you can split AIJ.


> If possible for MATMPIAIJ, could anybody provide me a simple example
> or few steps? Variables in the equations are displacement vector,
> scalar potential and pressure.
>

If you do not have a collocated discretization, then you have to use


http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCFieldSplitSetIS.html

  Thanks,

     Matt


> Thanks for help.
>
> Hom Nath
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160124/b04e72a9/attachment.html>


More information about the petsc-users mailing list