Re: [Libmesh-users] direct solver

2008-04-11 Thread Roy Stogner
On Fri, 11 Apr 2008, Jed Brown wrote: > On Fri 2008-04-11 16:47, [EMAIL PROTECTED] wrote: >> I ran ex3 using the runtime flags and I got the following error message: > > You'll have to add something like > > KSPSetInitialGuessNonzero(ksp, PETSC_FALSE); > > before the solve if you want to use pre

Re: [Libmesh-users] direct solver

2008-04-11 Thread Jed Brown
On Fri 2008-04-11 16:47, [EMAIL PROTECTED] wrote: > I ran ex3 using the runtime flags and I got the following error message: You'll have to add something like KSPSetInitialGuessNonzero(ksp, PETSC_FALSE); before the solve if you want to use preonly. I was unaware that libmesh sets this by defaul

Re: [Libmesh-users] direct solver

2008-04-10 Thread Jed Brown
On Thu 2008-04-10 18:01, [EMAIL PROTECTED] wrote: > I appreciate your answer but in fact I want to define the solver inside > the code since I have different solvers for different systems. > So I rewrite the question: > How to call a direct solver with something like > 'linear_solver->set_solver_ty

Re: [Libmesh-users] direct solver

2008-04-10 Thread pcorreia
I appreciate your answer but in fact I want to define the solver inside the code since I have different solvers for different systems. So I rewrite the question: How to call a direct solver with something like 'linear_solver->set_solver_type'? Thanks Paulo > On Thu 2008-04-10 14:09, [EMAIL PROTECT

Re: [Libmesh-users] direct solver

2008-04-10 Thread John Peterson
Great answer, thanks Jed. -J On Thu, Apr 10, 2008 at 7:27 AM, Jed Brown <[EMAIL PROTECTED]> wrote: > On Thu 2008-04-10 14:09, [EMAIL PROTECTED] wrote: > > Hi, > > How can I use a direct solver to solve a linear system of equations? > > Thanks in advance, > > Paulo > > You can do this entirel

Re: [Libmesh-users] direct solver

2008-04-10 Thread Jed Brown
On Thu 2008-04-10 14:09, [EMAIL PROTECTED] wrote: > Hi, > How can I use a direct solver to solve a linear system of equations? > Thanks in advance, > Paulo You can do this entirely with PETSc command line arguments. For instance -ksp_type preonly -pc_type lu will solve the system using LU decom

[Libmesh-users] direct solver

2008-04-10 Thread pcorreia
Hi, How can I use a direct solver to solve a linear system of equations? Thanks in advance, Paulo - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time