mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-27 01:31:00 -06:00
[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
529d0887a3
commit
f763192a32
@ -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