mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -115,7 +115,7 @@ int main(int argc, char** argv)
|
|||||||
typedef TTAG(FlowEarlyBird) PreTypeTag;
|
typedef TTAG(FlowEarlyBird) PreTypeTag;
|
||||||
typedef GET_PROP_TYPE(PreTypeTag, Problem) PreProblem;
|
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);
|
int status = Opm::FlowMainEbos<PreTypeTag>::setupParameters_(argc, argv);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
|
|||||||
@@ -407,9 +407,8 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
ss << "Simulation started on " << tmstr << " hrs\n";
|
ss << "Simulation started on " << tmstr << " hrs\n";
|
||||||
|
|
||||||
ss << "---- parameters ----\n";
|
ss << "Parameters used by Flow:\n";
|
||||||
Ewoms::Parameters::printValues<TypeTag>(ss);
|
Ewoms::Parameters::printValues<TypeTag>(ss);
|
||||||
ss << "---- /parameters ----\n";
|
|
||||||
|
|
||||||
OpmLog::note(ss.str());
|
OpmLog::note(ss.str());
|
||||||
}
|
}
|
||||||
@@ -513,11 +512,15 @@ namespace Opm
|
|||||||
simtimer.init(timeMap, (size_t)initConfig.getRestartStep());
|
simtimer.init(timeMap, (size_t)initConfig.getRestartStep());
|
||||||
|
|
||||||
if (output_cout_) {
|
if (output_cout_) {
|
||||||
|
std::ostringstream oss;
|
||||||
|
|
||||||
// This allows a user to catch typos and misunderstandings in the
|
// This allows a user to catch typos and misunderstandings in the
|
||||||
// use of simulator parameters.
|
// use of simulator parameters.
|
||||||
std::cout << "----------------- Unrecognized parameters: -----------------\n";
|
if (Ewoms::Parameters::printUnused<TypeTag>(oss)) {
|
||||||
Ewoms::Parameters::printUnused<TypeTag>();
|
std::cout << "----------------- Unrecognized parameters: -----------------\n";
|
||||||
std::cout << "----------------------------------------------------------------" << std::endl;
|
std::cout << oss.str();
|
||||||
|
std::cout << "----------------------------------------------------------------" << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ioConfig.initOnly()) {
|
if (!ioConfig.initOnly()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user