22 #ifndef OPM_SIMULATOR_CONVERGENCE_OUTPUT_HEADER_INCLUDED 23 #define OPM_SIMULATOR_CONVERGENCE_OUTPUT_HEADER_INCLUDED 25 #include <opm/simulators/flow/ExtraConvergenceOutputThread.hpp> 29 #include <string_view> 62 std::string_view convOutputOptions,
63 std::string_view optionName,
77 void write(
const std::vector<StepReport>& reports);
87 std::vector<StepReport>::size_type alreadyReportedSteps_ = 0;
94 std::optional<ConvergenceReportQueue> convergenceOutputQueue_{};
100 std::optional<ConvergenceOutputThread> convergenceOutputObject_{};
109 std::optional<std::thread> convergenceOutputThread_{};
114 #endif // OPM_SIMULATOR_CONVERGENCE_OUTPUT_HEADER_INCLUDED void startThread(const EclipseState &eclState, std::string_view convOutputOptions, std::string_view optionName, ConvergenceOutputThread::ComponentToPhaseName getPhaseName)
Start convergence output thread.
Definition: SimulatorConvergenceOutput.cpp:40
std::function< std::string_view(int)> ComponentToPhaseName
Protocol for converting a phase/component ID into a human readable phase/component name...
Definition: ExtraConvergenceOutputThread.hpp:109
void endThread()
Request that convergence output thread be shut down.
Definition: SimulatorConvergenceOutput.cpp:100
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Class handling convergence history output for a simulator.
Definition: SimulatorConvergenceOutput.hpp:43
void write(const std::vector< StepReport > &reports)
Create convergence output requests.
Definition: SimulatorConvergenceOutput.cpp:72