From 6f227044067d29cbab3178bc6afefe8505263856 Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Fri, 15 Jun 2012 13:57:35 +0200 Subject: [PATCH] Correct a const error. --- opm/core/wells/WellsManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/core/wells/WellsManager.cpp b/opm/core/wells/WellsManager.cpp index 89f941575..5aa1bded8 100644 --- a/opm/core/wells/WellsManager.cpp +++ b/opm/core/wells/WellsManager.cpp @@ -486,7 +486,7 @@ namespace Opm THROW("Failure occured appending controls for well " << well_names[wix]); } InjectionControl::Mode mode = InjectionControl::mode(wci_line.control_mode_); - const int cpos = control_pos[mode]; + int cpos = control_pos[mode]; if (cpos == -1 && mode != InjectionControl::GRUP) { THROW("Control for " << wci_line.control_mode_ << " not specified in well " << well_names[wix]); } @@ -614,7 +614,7 @@ namespace Opm THROW("Failure occured appending controls for well " << well_names[wix]); } ProductionControl::Mode mode = ProductionControl::mode(wcp_line.control_mode_); - const int cpos = control_pos[mode]; + int cpos = control_pos[mode]; if (cpos == -1 && mode != ProductionControl::GRUP) { THROW("Control mode type " << mode << " not present in well " << well_names[wix]); }