[petsc-users] PCFIELDSPLIT question

Hom Nath Gharti hng.email at gmail.com
Sun Jan 24 18:14:34 CST 2016


Thank you so much Matt! I will try.

Hom Nath

On Sun, Jan 24, 2016 at 6:26 AM, Matthew Knepley <knepley at gmail.com> wrote:
> 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


More information about the petsc-users mailing list