Added EXPERIMENT_ISTL-guarded code for testing Istl linear solver.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-02-21 22:14:01 +01:00
parent 433b6cea3f
commit 1a62734e98

View File

@ -40,6 +40,11 @@
#include <opm/core/linalg/sparse_sys.h>
#include <opm/core/linalg/LinearSolverUmfpack.hpp>
// #define EXPERIMENT_ISTL
#ifdef EXPERIMENT_ISTL
#include <opm/core/linalg/LinearSolverIstl.hpp>
#endif
#include <opm/core/pressure/IncompTpfa.hpp>
#include <opm/core/GridManager.hpp>
@ -424,7 +429,11 @@ main(int argc, char** argv)
// Solvers init.
// Pressure solver.
#ifdef EXPERIMENT_ISTL
Opm::LinearSolverIstl linsolver(param);
#else
Opm::LinearSolverUmfpack linsolver;
#endif // EXPERIMENT_ISTL
Opm::IncompTpfa psolver(*grid->c_grid(),
props->permeability(),
use_gravity ? gravity : 0,