My Project
|
Class handling convergence history output for a simulator. More...
#include <SimulatorConvergenceOutput.hpp>
Public Member Functions | |
void | startThread (const EclipseState &eclState, std::string_view convOutputOptions, std::string_view optionName, ConvergenceOutputThread::ComponentToPhaseName getPhaseName) |
Start convergence output thread. | |
void | write (const std::vector< StepReport > &reports) |
Create convergence output requests. | |
void | endThread () |
Request that convergence output thread be shut down. | |
Class handling convergence history output for a simulator.
void Opm::SimulatorConvergenceOutput::endThread | ( | ) |
Request that convergence output thread be shut down.
No additional output requests should be submitted to write() once this function is called.
void Opm::SimulatorConvergenceOutput::startThread | ( | const EclipseState & | eclState, |
std::string_view | convOutputOptions, | ||
std::string_view | optionName, | ||
ConvergenceOutputThread::ComponentToPhaseName | getPhaseName | ||
) |
Start convergence output thread.
Thread starts only if explicitly requested in runtime user options.
[in] | eclState | Static model object. Needed to determine run's output directory, base name, and unit conventions. |
[in] | convOutputOptions | Comma separated option string as required by class ConvergenceOutputConfiguration. |
[in] | optionName | Name of command line option whose value is convOutputOptions . Used as diagnostic information only. |
[in] | getPhaseName | Callable object for converting component indices into human readable component names. |
void Opm::SimulatorConvergenceOutput::write | ( | const std::vector< StepReport > & | reports | ) |
Create convergence output requests.
Must not be called before startThread() or after endThread().
Only those reports which have not previously been emitted will be written, and only if the run actually requests convergence output at the non-linear iteration level.
[in] | reports | All step reports generated in the simulation run so far. Class SimulatorConvergenceOutput maintains a record of which reports have been written. |