SimulatorReportSingle: pass argument as std::ostream

no reason for this to explicitly be an ostringstream
This commit is contained in:
Arne Morten Kvarving 2023-02-09 11:32:39 +01:00
parent cb3b50f4b7
commit 382fd73fca
2 changed files with 4 additions and 5 deletions

View File

@ -17,15 +17,14 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <config.h>
#include <opm/simulators/timestepping/SimulatorReport.hpp>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/input/eclipse/Units/Units.hpp>
#include <iomanip>
#include <ostream>
#include <sstream>
#include <fmt/format.h>
namespace Opm
@ -59,7 +58,7 @@ namespace Opm
}
void SimulatorReportSingle::reportStep(std::ostringstream& ss) const
void SimulatorReportSingle::reportStep(std::ostream& ss) const
{
if (total_well_iterations != 0) {
ss << fmt::format("Well its={:2}", total_well_iterations);

View File

@ -61,7 +61,7 @@ namespace Opm
/// Increment this report's times by those in sr.
void operator+=(const SimulatorReportSingle& sr);
/// Print a report suitable for a single simulation step.
void reportStep(std::ostringstream& os) const;
void reportStep(std::ostream& os) const;
/// Print a report suitable for the end of a fully implicit case, leaving out the pressure/transport time.
void reportFullyImplicit(std::ostream& os, const SimulatorReportSingle* failedReport = nullptr) const;
};