mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
Log well control switching message.
Instead of writing to std::cout.
This commit is contained in:
parent
8a76adb658
commit
cf5dbf292a
@ -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;
|
||||||
|
ss << "Switching control mode for well " << wells().name[w]
|
||||||
<< " from " << modestring[well_controls_iget_type(wc, current)]
|
<< " from " << modestring[well_controls_iget_type(wc, current)]
|
||||||
<< " to " << modestring[well_controls_iget_type(wc, ctrl_index)] << std::endl;
|
<< " 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