From d44e8e6d9fba0fc333951f16fdc5d8e6015dc361 Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Tue, 28 Oct 2014 16:29:22 +0800 Subject: [PATCH] remove unnecessary referencer. --- .../SimulatorFullyImplicitBlackoilPolymer_impl.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp index acd2caad0..cd275cd3f 100644 --- a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp +++ b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp @@ -347,10 +347,9 @@ namespace Opm 0.0)); } std::vector polymer_inflow_c(Opm::UgGridHelpers::numCells(grid_)); - const PolymerInflowInterface& polymer_inflow = *polymer_inflow_ptr; - polymer_inflow.getInflowValues(timer.simulationTimeElapsed(), - timer.simulationTimeElapsed() + timer.currentStepLength(), - polymer_inflow_c); + polymer_inflow_ptr->getInflowValues(timer.simulationTimeElapsed(), + timer.simulationTimeElapsed() + timer.currentStepLength(), + polymer_inflow_c); // Output state at start of time step. if (output_ && (timer.currentStepNum() % output_interval_ == 0)) { if (output_vtk_) {