From 6839b811f2a278b11905484970c6ef588fa52d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 21 Dec 2015 15:05:32 +0100 Subject: [PATCH] Make polymer solver use direct solver only. The interleaved solver should work for this case, but does not currently. --- opm/autodiff/FlowMainPolymer.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/opm/autodiff/FlowMainPolymer.hpp b/opm/autodiff/FlowMainPolymer.hpp index a917eb8e6..b594b3c0b 100644 --- a/opm/autodiff/FlowMainPolymer.hpp +++ b/opm/autodiff/FlowMainPolymer.hpp @@ -87,6 +87,19 @@ namespace Opm + // Setup linear solver. + // Writes to: + // fis_solver_ + void setupLinearSolver() + { + OPM_MESSAGE("Caution: polymer solver currently only works with direct linear solver."); + Base::fis_solver_.reset(new NewtonIterationBlackoilSimple(Base::param_, Base::parallel_information_)); + } + + + + + // Create simulator instance. // Writes to: // simulator_