Merge pull request #918 from akva2/remove_print_properties

changed: remove the print-properties parameter
This commit is contained in:
Bård Skaflestad 2024-08-08 10:17:57 +02:00 committed by GitHub
commit 04595958b6
4 changed files with 0 additions and 35 deletions

View File

@ -87,15 +87,6 @@ struct PredeterminedTimeStepsFile { using type = Properties::UndefinedProperty;
template<class TypeTag, class MyTypeTag> template<class TypeTag, class MyTypeTag>
struct PrintParameters { using type = Properties::UndefinedProperty; }; struct PrintParameters { using type = Properties::UndefinedProperty; };
/*!
* \brief Print all properties on startup?
*
* 0 means 'no', 1 means 'yes', 2 means 'print only to logfiles'. The
* default is 2.
*/
template<class TypeTag, class MyTypeTag>
struct PrintProperties { using type = Properties::UndefinedProperty; };
//! The default value for the simulation's restart time //! The default value for the simulation's restart time
template<class TypeTag, class MyTypeTag> template<class TypeTag, class MyTypeTag>
struct RestartTime { using type = Properties::UndefinedProperty; }; struct RestartTime { using type = Properties::UndefinedProperty; };

View File

@ -219,11 +219,6 @@ template<class TypeTag>
struct PrintParameters<TypeTag, Properties::TTag::NumericModel> struct PrintParameters<TypeTag, Properties::TTag::NumericModel>
{ static constexpr int value = 2; }; { static constexpr int value = 2; };
//! By default, print the properties on startup
template<class TypeTag>
struct PrintProperties<TypeTag, Properties::TTag::NumericModel>
{ static constexpr int value = 2; };
//! The default value for the simulation's restart time //! The default value for the simulation's restart time
template<class TypeTag> template<class TypeTag>
struct RestartTime<TypeTag, Properties::TTag::NumericModel> struct RestartTime<TypeTag, Properties::TTag::NumericModel>

View File

@ -268,17 +268,6 @@ auto getPropName()
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
namespace Properties {
template <class TypeTag>
void printValues(std::ostream& os)
{
os <<
"The eWoms property system was compiled with the macro\n"
"NO_PROPERTY_INTROSPECTION defined.\n"
"No diagnostic messages this time, sorry.\n";
}
}
} // end namespace Opm } // end namespace Opm
#endif #endif

View File

@ -80,9 +80,6 @@ static inline void registerAllParameters_(bool finalizeRegistration = true)
Parameters::registerParam<TypeTag, Parameters::ParameterFile> Parameters::registerParam<TypeTag, Parameters::ParameterFile>
("An .ini file which contains a set of run-time parameters"); ("An .ini file which contains a set of run-time parameters");
Parameters::registerParam<TypeTag, Parameters::PrintProperties>
("Print the values of the compile time properties at "
"the start of the simulation");
Parameters::registerParam<TypeTag, Parameters::PrintParameters> Parameters::registerParam<TypeTag, Parameters::PrintParameters>
("Print the values of the run-time parameters at the " ("Print the values of the run-time parameters at the "
"start of the simulation"); "start of the simulation");
@ -377,13 +374,6 @@ static inline int start(int argc, char **argv, bool registerParams=true)
std::cout << endParametersSeparator; std::cout << endParametersSeparator;
} }
// print the properties if requested
int printProps = Parameters::get<TypeTag, Parameters::PrintProperties>();
if (printProps && myRank == 0) {
if (printProps == 1 || !isatty(fileno(stdout)))
Properties::printValues<TypeTag>(std::cout);
}
// instantiate and run the concrete problem. make sure to // instantiate and run the concrete problem. make sure to
// deallocate the problem and before the time manager and the // deallocate the problem and before the time manager and the
// grid // grid