Utility class to handle the log messages about well switching. More...
#include <WellSwitchingLogger.hpp>
Public Types | |
typedef Dune::CollectiveCommunication < typename Dune::MPIHelper::MPICommunicator > | Communication |
The type of the collective communication used. | |
Public Member Functions | |
WellSwitchingLogger (const Communication &cc=Dune::MPIHelper::getCollectiveCommunication()) | |
Constructor. | |
void | wellSwitched (std::string name, WellControlType from, WellControlType to) |
Log that a well switched. | |
~WellSwitchingLogger () | |
Destructor send does the actual logging. |
Utility class to handle the log messages about well switching.
In parallel all the messages will be send to a root processor and logged there.
Opm::wellhelpers::WellSwitchingLogger::WellSwitchingLogger | ( | const Communication & | cc = Dune::MPIHelper::getCollectiveCommunication() |
) | [inline, explicit] |
Constructor.
cc | The collective communication to use. |
void Opm::wellhelpers::WellSwitchingLogger::wellSwitched | ( | std::string | name, | |
WellControlType | from, | |||
WellControlType | to | |||
) | [inline] |
Log that a well switched.
name | The name of the well. | |
from | The control of the well before the switch. | |
to | The control of the well after the switch. |