From a1cc880ad74a848abe91e9c0023f8c749ea38b9d Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Fri, 24 Jun 2016 10:00:06 +0200 Subject: [PATCH] only calculating repesentative radius when having PLYSHLOG. --- .../SimulatorFullyImplicitBlackoilPolymer_impl.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp index 4c32d1ce0..e1f085045 100644 --- a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp +++ b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp @@ -123,7 +123,9 @@ namespace Opm polymer_inflow_c); well_state.polymerInflow() = polymer_inflow_c; - computeRepRadiusPerfLength(BaseType::eclipse_state_, timer.currentStepNum(), BaseType::grid_, wells_rep_radius_, wells_perf_length_, wells_bore_diameter_); + if (has_plyshlog_) { + computeRepRadiusPerfLength(BaseType::eclipse_state_, timer.currentStepNum(), BaseType::grid_, wells_rep_radius_, wells_perf_length_, wells_bore_diameter_); + } }