[petsc-users] How to use

Matthew Knepley knepley at gmail.com
Thu Oct 2 12:11:36 CDT 2014


On Thu, Oct 2, 2014 at 12:08 PM, Sharp Stone <thronesf at gmail.com> wrote:

> Matt,
>
> Thank you very much!
>
> The ex19 used the Gauss-Seidel method. But I'm a little bit wonder whether
> we have any examples of Jacobi method to solve such linear systems "(mat)A
> dot (vec)X = (vec)B" with dof>1? Thanks in advance!
>

Try -pc_type jacobi

   Matt


> On Tue, Sep 30, 2014 at 10:15 PM, Matthew Knepley <knepley at gmail.com>
> wrote:
>
>> On Tue, Sep 30, 2014 at 9:13 PM, Sharp Stone <thronesf at gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I have four differential equations to be solved with a linear sparse
>>> matrix system that has the form of "(mat)A dot (vec)X = (vec)B". For each
>>> node, I have dof=4. I found few tutorials or examples on the KSPSolve with
>>> dof>1, and I do know it's possible to solve this problem with Petsc. Are
>>> there any sources illustrating ksp solver with dof>1? Many thanks!
>>>
>>
>> Yes, try SNES ex19.
>>
>>   Thanks,
>>
>>     Matt
>>
>>
>>> Sorry for the stupid questions.
>>>
>>> --
>>> Best regards,
>>>
>>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> Best regards,
>
> Feng
>



-- 
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/20141002/fe2d18f6/attachment.html>


More information about the petsc-users mailing list