Linear solvers
Linear solvers are defined in EdelweissFE after the *solver
keyword using linsolver
and an optional configuration file linsolverConfigFile
as a data line.
The linsolverConfigFile
needs to be in .json
format.
Choose a linsolver after the *solver
keyword:
*solver, solver=NIST, name=theSolver
linsolver=gmres
linsolverConfigFile=opt.json
Name |
Direct solver |
Relevant module |
---|---|---|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✗ |
|
Currently, only the linsolver gmres
allows the use of an optional configuration file linsolverConfigFile
.
Choose the options for the linsolver (in this case gmres
) in an extra file:
{
"precondopts":
{
"presmoother": ["block_gauss_seidel", {"iterations": 15}],
"postsmoother": ["block_gauss_seidel", {"iterations": 15}],
},
"linsolveopts": {"maxiter": 1, "restart": 1500}
}