From 1ff1f24fbba8fd0b54a0d62f738ae1f4f06338fe Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 12 May 2020 11:34:38 +0200 Subject: [PATCH] Fix when the matrix with no ghosts will be used. --- opm/simulators/linalg/ISTLSolverEbos.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index 0fef19401..24370f28e 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -503,7 +503,7 @@ protected: if( isParallel() ) { - if ( ownersFirst_ && (!parameters_.linear_solver_use_amg_ || !parameters_.use_cpr_) ) { + if ( ownersFirst_ && !parameters_.linear_solver_use_amg_ && !useFlexible_) { typedef WellModelGhostLastMatrixAdapter< Matrix, Vector, Vector, WellModel, true > Operator; Operator opA(*matrix_, *matrix_, wellModel, interiorCellNum_);