flow: minor parameter related fixes

- Change the brief description slightly
- Do not print anything anymore if there are no unused parameters
- Change the boiler plate text for printing the parameters to the
  PRT/DBG files

in part, this has been requested by [at]atgeirr.
This commit is contained in:
Andreas Lauser 2018-08-13 10:31:18 +02:00
parent f22f1668f3
commit f2b0630040
2 changed files with 9 additions and 6 deletions

View File

@ -115,7 +115,7 @@ int main(int argc, char** argv)
typedef TTAG(FlowEarlyBird) PreTypeTag;
typedef GET_PROP_TYPE(PreTypeTag, Problem) PreProblem;
PreProblem::setBriefDescription("flow, the OPM reservoir simulator for ECL-decks.");
PreProblem::setBriefDescription("Flow, an advanced reservoir simulator for ECL-decks provided by the Open Porous Media project.");
int status = Opm::FlowMainEbos<PreTypeTag>::setupParameters_(argc, argv);
if (status != 0)

View File

@ -407,9 +407,8 @@ namespace Opm
}
ss << "Simulation started on " << tmstr << " hrs\n";
ss << "---- parameters ----\n";
ss << "Parameters used by Flow:\n";
Ewoms::Parameters::printValues<TypeTag>(ss);
ss << "---- /parameters ----\n";
OpmLog::note(ss.str());
}
@ -513,11 +512,15 @@ namespace Opm
simtimer.init(timeMap, (size_t)initConfig.getRestartStep());
if (output_cout_) {
std::ostringstream oss;
// This allows a user to catch typos and misunderstandings in the
// use of simulator parameters.
std::cout << "----------------- Unrecognized parameters: -----------------\n";
Ewoms::Parameters::printUnused<TypeTag>();
std::cout << "----------------------------------------------------------------" << std::endl;
if (Ewoms::Parameters::printUnused<TypeTag>(oss)) {
std::cout << "----------------- Unrecognized parameters: -----------------\n";
std::cout << oss.str();
std::cout << "----------------------------------------------------------------" << std::endl;
}
}
if (!ioConfig.initOnly()) {