Merge pull request #5514 from akva2/remove_print_properties

Remove support for the print-properties parameter
This commit is contained in:
Bård Skaflestad 2024-08-08 10:14:48 +02:00 committed by GitHub
commit a336f0df90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,24 +240,13 @@ namespace Opm {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
// deal with --print-properties and --print-parameters and unknown parameters. // deal with --print-parameters and unknown parameters.
bool doExit = false;
if (Parameters::get<TypeTag, Parameters::PrintProperties>() == 1) {
doExit = true;
if (mpiRank == 0)
Properties::printValues<TypeTag>(std::cout);
}
if (Parameters::get<TypeTag, Parameters::PrintParameters>() == 1) { if (Parameters::get<TypeTag, Parameters::PrintParameters>() == 1) {
doExit = true; if (mpiRank == 0) {
if (mpiRank == 0)
Parameters::printValues<TypeTag>(); Parameters::printValues<TypeTag>();
} }
if (doExit)
return -1; return -1;
}
} }
return status; return status;