From 3e46a11164f31607ab7c802c9a2561b639765e1d Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 3 Jan 2023 15:27:49 +0100 Subject: [PATCH] propertysystem: avoid pulling in istream --- opm/models/utils/propertysystem.hh | 4 ++-- opm/models/utils/start.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/models/utils/propertysystem.hh b/opm/models/utils/propertysystem.hh index 4dbce953a..8284b6822 100644 --- a/opm/models/utils/propertysystem.hh +++ b/opm/models/utils/propertysystem.hh @@ -28,7 +28,7 @@ #include #include -#include +#include namespace Opm { namespace Properties { @@ -245,7 +245,7 @@ constexpr auto getPropValue() { return Properties::Detail::GetPropImpl -void printValues(std::ostream& os = std::cout) +void printValues(std::ostream& os) { os << "The eWoms property system was compiled with the macro\n" diff --git a/opm/models/utils/start.hh b/opm/models/utils/start.hh index f9031e6cd..afbc4388b 100644 --- a/opm/models/utils/start.hh +++ b/opm/models/utils/start.hh @@ -383,7 +383,7 @@ static inline int start(int argc, char **argv, bool registerParams=true) int printProps = EWOMS_GET_PARAM(TypeTag, int, PrintProperties); if (printProps && myRank == 0) { if (printProps == 1 || !isatty(fileno(stdout))) - Properties::printValues(); + Properties::printValues(std::cout); } // instantiate and run the concrete problem. make sure to