Merge pull request #687 from blattms/remove-superlfluous-if-in-wellstate-check
[cleanup] Removes a superfluous if-check of the well state.
This commit is contained in:
commit
fcf8c156aa
@ -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