On Mon, Nov 24, 2014 at 4:07 PM, Sharp Stone <[email protected]> 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

Reply via email to