[petsc-users] Linear Solver Problem

Matthew Knepley knepley at gmail.com
Tue Nov 25 11:40:58 CST 2014


On Mon, Nov 24, 2014 at 4:07 PM, Sharp Stone <thronesf at gmail.com> wrote:

> Dear all,
>
> I encountered a weird results from petsc linear solver. I have output the
> same matrix and RHS vector from the linear system, and solve it also with
> matlab. When dof is 1, both solvers from Matlab and Petsc can give me the
> same results, However, Matlab can give me the right result but petsc does
> not when dof=4.
>
> I attached the matrix and RHS vectors for dof=4 case. I don't know where I
> made wrong, or else. Thanks a million in advance!
>

Solve it with LU to check first, -pc_type lu.

  Matt


> --
> 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/20141125/3181fdc0/attachment-0001.html>


More information about the petsc-users mailing list