22#ifndef OPM_SIMULATOR_CONVERGENCE_OUTPUT_HEADER_INCLUDED
23#define OPM_SIMULATOR_CONVERGENCE_OUTPUT_HEADER_INCLUDED
25#include <opm/simulators/flow/ExtraConvergenceOutputThread.hpp>
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_{};
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
Class handling convergence history output for a simulator.
Definition SimulatorConvergenceOutput.hpp:44
void endThread()
Request that convergence output thread be shut down.
Definition SimulatorConvergenceOutput.cpp:100
void write(const std::vector< StepReport > &reports)
Create convergence output requests.
Definition SimulatorConvergenceOutput.cpp:72
void startThread(const EclipseState &eclState, std::string_view convOutputOptions, std::string_view optionName, ConvergenceOutputThread::ComponentToPhaseName getPhaseName)
Start convergence output thread.
Definition SimulatorConvergenceOutput.cpp:40
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
Definition ConvergenceReport.hpp:460