Parameters::printValues: drop default parameter for stream

This commit is contained in:
Arne Morten Kvarving 2024-09-04 19:43:04 +02:00
parent ed0c480a19
commit 4967323c29
3 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ void parseParameterFile(const std::string& fileName, bool overwrite = true);
* *
* \param os The \c std::ostream on which the message should be printed * \param os The \c std::ostream on which the message should be printed
*/ */
void printValues(std::ostream& os = std::cout); void printValues(std::ostream& os);
/*! /*!
* \ingroup Parameter * \ingroup Parameter

View File

@ -358,7 +358,7 @@ static inline int start(int argc, char **argv, bool registerParams=true)
if (printParams) { if (printParams) {
bool printSeparator = false; bool printSeparator = false;
if (printParams == 1 || !isatty(fileno(stdout))) { if (printParams == 1 || !isatty(fileno(stdout))) {
Parameters::printValues(); Parameters::printValues(std::cout);
printSeparator = true; printSeparator = true;
} }
else else

View File

@ -150,7 +150,7 @@ namespace Opm {
// deal with --print-parameters and unknown parameters. // deal with --print-parameters and unknown parameters.
if (Parameters::Get<Parameters::PrintParameters>() == 1) { if (Parameters::Get<Parameters::PrintParameters>() == 1) {
if (mpiRank == 0) { if (mpiRank == 0) {
Parameters::printValues(); Parameters::printValues(std::cout);
} }
return -1; return -1;
} }