mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-19 05:53:28 -06:00
Improve error message.
This commit is contained in:
parent
264d8dda0c
commit
379cebb550
@ -461,7 +461,7 @@ namespace Opm
|
|||||||
InjectionControl::Mode mode = InjectionControl::mode(wci_line.control_mode_);
|
InjectionControl::Mode mode = InjectionControl::mode(wci_line.control_mode_);
|
||||||
const int cpos = control_pos[mode];
|
const int cpos = control_pos[mode];
|
||||||
if (cpos == -1 && mode != InjectionControl::GRUP) {
|
if (cpos == -1 && mode != InjectionControl::GRUP) {
|
||||||
THROW("Control mode type " << mode << " not present in well " << well_names[wix]);
|
THROW("Control for " << wci_line.control_mode_ << " not specified in well " << well_names[wix]);
|
||||||
}
|
}
|
||||||
set_current_control(wix, cpos, w_);
|
set_current_control(wix, cpos, w_);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user