mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #703 from atgeirr/log-output
Log well control switching message.
This commit is contained in:
commit
bceaf56c7e
@ -722,9 +722,11 @@ namespace Opm
|
|||||||
// Constraint number ctrl_index was broken, switch to it.
|
// Constraint number ctrl_index was broken, switch to it.
|
||||||
if (terminal_output)
|
if (terminal_output)
|
||||||
{
|
{
|
||||||
std::cout << "Switching control mode for well " << wells().name[w]
|
std::ostringstream ss;
|
||||||
<< " from " << modestring[well_controls_iget_type(wc, current)]
|
ss << "Switching control mode for well " << wells().name[w]
|
||||||
<< " to " << modestring[well_controls_iget_type(wc, ctrl_index)] << std::endl;
|
<< " from " << modestring[well_controls_iget_type(wc, current)]
|
||||||
|
<< " to " << modestring[well_controls_iget_type(wc, ctrl_index)] << std::endl;
|
||||||
|
OpmLog::info(ss.str());
|
||||||
}
|
}
|
||||||
xw.currentControls()[w] = ctrl_index;
|
xw.currentControls()[w] = ctrl_index;
|
||||||
current = xw.currentControls()[w];
|
current = xw.currentControls()[w];
|
||||||
|
Loading…
Reference in New Issue
Block a user