[cleanup] Removes a superfluous if-check of the well state.
There were to identical if statements and the second one was followed by an else branch. While in this case (if statement just throws) it is not a bug, this commit cleans up one of the if statements.
This commit is contained in:
parent
d26363db52
commit
e22795e920
@ -623,9 +623,6 @@ namespace Opm
|
||||
if (cpos == -1 && mode != WellsManagerDetail::ProductionControl::GRUP) {
|
||||
OPM_THROW(std::runtime_error, "Control mode type " << mode << " not present in well " << well_names[well_index]);
|
||||
}
|
||||
if (cpos == -1 && mode != WellsManagerDetail::ProductionControl::GRUP) {
|
||||
OPM_THROW(std::runtime_error, "Control mode type " << mode << " not present in well " << well_names[well_index]);
|
||||
}
|
||||
else {
|
||||
set_current_control(well_index, cpos, w_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user