Add and use PreconditionerFactory class.

This replaces the makePreconditoner() function. The main advantage
is that it is extensible, making it easy to for example add new
preconditioners to the factory at runtime. It supports both parallel
and serial preconditioners.
This commit is contained in:
Atgeirr Flø Rasmussen
2019-05-29 16:21:34 +02:00
parent d44b974dc8
commit c21fd6f26d
8 changed files with 614 additions and 358 deletions

View File

@@ -0,0 +1,9 @@
{
"tol": "1e-12",
"maxiter": "200",
"verbosity": "0",
"solver": "bicgstab",
"preconditioner": {
"type": "nothing"
}
}