From 2b6163b5ff3642b777e47b995f9b52d67de98b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 17 Jun 2015 12:51:39 +0200 Subject: [PATCH] Use the base class model_param_ and avoid recreating it. --- .../SimulatorFullyImplicitBlackoilPolymer_impl.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp index 4957ee6cf..94a75bc8e 100644 --- a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp +++ b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp @@ -64,12 +64,9 @@ namespace Opm -> std::unique_ptr { typedef typename Traits::Model Model; - typedef typename Model::ModelParameters ModelParams; - ModelParams modelParams( BaseType::param_ ); - typedef NewtonSolver Solver; - auto model = std::unique_ptr(new Model(modelParams, + auto model = std::unique_ptr(new Model(BaseType::model_param_, BaseType::grid_, BaseType::props_, BaseType::geo_,