Re: [Libmesh-users] Setting the linear solver

2020-12-09 Thread Roy Stogner
On Wed, 9 Dec 2020, Laura Scarabosio wrote: Thank you for your explanations. I built libmesh by disabling mpi, so is the default solver still PETSc? If you configured with PETSc (which can be configured with "mpiuni" rather than a real MPI), it is. If you didn't, it isn't. You can look for

Re: [Libmesh-users] Setting the linear solver

2020-12-08 Thread Roy Stogner
On Tue, 8 Dec 2020, Laura Scarabosio wrote: >> LinearSolver::set_solver_type(foo) and set_preconditioner_type(bar), But shouldn't I get the linear solver from the equation system or the system? If I declare a linear solver as you said, how does libmesh know that it has to be used to solve a p

Re: [Libmesh-users] Setting the linear solver

2020-12-08 Thread Roy Stogner
On Tue, 8 Dec 2020, Laura Scarabosio wrote: I would like to ask what are the default linear solver and preconditioner in Libmesh, GMRES and ILU, if you've configured with a linear algebra package supporting them. and how to specify in the code which ones to use (e.g. as flags or parameters

[Libmesh-users] Setting the linear solver

2020-12-08 Thread Laura Scarabosio
Hi all, I have a basic question but still I was not able to find a satisfying answer on the web. I would like to ask what are the default linear solver and preconditioner in Libmesh, and how to specify in the code which ones to use (e.g. as flags or parameters). Also, is there the possibility to