Re: [petsc-users] Direct linear solver in Petsc

2020-06-12 Thread Qin Lu via petsc-users
Thanks Barry! Qin On Friday, June 12, 2020, 6:18 PM, Barry Smith wrote:   For the problem sizes you describe with sparse matrices the PETSc built in one is competitive with the external solvers, sometimes faster, it is not worth using the external solvers for such small problems. The

Re: [petsc-users] Direct linear solver in Petsc

2020-06-12 Thread Mark Adams
On Fri, Jun 12, 2020 at 1:18 PM Matthew Knepley wrote: > On Fri, Jun 12, 2020 at 12:49 PM Qin Lu via petsc-users < > petsc-users@mcs.anl.gov> wrote: > >> Hello, >> >> I plan to solve a small sparse linear equation system using the direct >> solver, since the number of unknowns is small (less

Re: [petsc-users] Direct linear solver in Petsc

2020-06-12 Thread Barry Smith
For the problem sizes you describe with sparse matrices the PETSc built in one is competitive with the external solvers, sometimes faster, it is not worth using the external solvers for such small problems. The external solvers have much more elaborate implements of sparse factorizations and

Re: [petsc-users] Direct linear solver in Petsc

2020-06-12 Thread Qin Lu via petsc-users
Thanks Matthew and Mark! Qin On Friday, June 12, 2020, 12:22:08 PM CDT, Mark Adams wrote: On Fri, Jun 12, 2020 at 12:56 PM Qin Lu via petsc-users wrote: Hello, I plan to solve a small sparse linear equation system using the direct solver, since the number of unknowns is small

Re: [petsc-users] Direct linear solver in Petsc

2020-06-12 Thread Mark Adams
On Fri, Jun 12, 2020 at 12:56 PM Qin Lu via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hello, > > I plan to solve a small sparse linear equation system using the direct > solver, since the number of unknowns is small (less than 1000). Here I got > a few questions: > > 1. Is there a general

Re: [petsc-users] Direct linear solver in Petsc

2020-06-12 Thread Matthew Knepley
On Fri, Jun 12, 2020 at 12:49 PM Qin Lu via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hello, > > I plan to solve a small sparse linear equation system using the direct > solver, since the number of unknowns is small (less than 1000). Here I got > a few questions: > > 1. Is there a general

[petsc-users] Direct linear solver in Petsc

2020-06-12 Thread Qin Lu via petsc-users
Hello, I plan to solve a small sparse linear equation system using the direct solver, since the number of unknowns is small (less than 1000). Here I got a few questions: 1. Is there a general guide line on the size of the system that direct solver is more efficient than iterative solver?2. Is