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! On Tue, Sep 30, 2014 at 10:15 PM, Matthew Knepley <[email protected]> wrote: > On Tue, Sep 30, 2014 at 9:13 PM, Sharp Stone <[email protected]> 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
