propertysystem: avoid pulling in istream

This commit is contained in:
Arne Morten Kvarving 2023-01-03 15:27:49 +01:00
parent 07f2699807
commit 3e46a11164
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@
#include <tuple>
#include <type_traits>
#include <iostream>
#include <ostream>
namespace Opm {
namespace Properties {
@ -245,7 +245,7 @@ constexpr auto getPropValue() { return Properties::Detail::GetPropImpl<TypeTag,
namespace Properties {
template <class TypeTag>
void printValues(std::ostream& os = std::cout)
void printValues(std::ostream& os)
{
os <<
"The eWoms property system was compiled with the macro\n"

View File

@ -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<TypeTag>();
Properties::printValues<TypeTag>(std::cout);
}
// instantiate and run the concrete problem. make sure to