mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 01:07:24 -06:00
move OutputDir parameter to TypeTag-less implementation
This commit is contained in:
parent
805e0a4bb7
commit
8a67f44793
@ -356,11 +356,6 @@ struct MinTimeStepSize<TypeTag, Properties::TTag::FvBaseDiscretization>
|
||||
static constexpr type value = 0.0;
|
||||
};
|
||||
|
||||
//! By default, write the simulation output to the current working directory
|
||||
template<class TypeTag>
|
||||
struct OutputDir<TypeTag, Properties::TTag::FvBaseDiscretization>
|
||||
{ static constexpr auto value = "."; };
|
||||
|
||||
} // namespace Opm::Parameters
|
||||
|
||||
namespace Opm {
|
||||
@ -546,7 +541,7 @@ public:
|
||||
("Turn on caching of intensive quantities");
|
||||
Parameters::registerParam<TypeTag, Parameters::EnableStorageCache>
|
||||
("Store previous storage terms and avoid re-calculating them.");
|
||||
Parameters::registerParam<TypeTag, Parameters::OutputDir>
|
||||
Parameters::Register<Parameters::OutputDir>
|
||||
("The directory to which result files are written");
|
||||
}
|
||||
|
||||
|
@ -53,14 +53,13 @@ struct EnableAsyncVtkOutput { static constexpr bool value = true; };
|
||||
*/
|
||||
struct EnableGridAdaptation { static constexpr bool value = false; };
|
||||
|
||||
//! \brief Number of threads per process.
|
||||
struct ThreadsPerProcess { static constexpr int value = 1; };
|
||||
|
||||
/*!
|
||||
* \brief The directory to which simulation output ought to be written to.
|
||||
*/
|
||||
template<class TypeTag, class MyTypeTag>
|
||||
struct OutputDir { using type = Properties::UndefinedProperty; };
|
||||
struct OutputDir { static constexpr auto value = ""; };
|
||||
|
||||
//! \brief Number of threads per process.
|
||||
struct ThreadsPerProcess { static constexpr int value = 1; };
|
||||
|
||||
/*!
|
||||
* \brief Global switch to enable or disable the writing of VTK output files
|
||||
|
@ -204,7 +204,7 @@ public:
|
||||
*/
|
||||
std::string outputDir() const
|
||||
{
|
||||
std::string outputDir = Parameters::get<TypeTag, Parameters::OutputDir>();
|
||||
std::string outputDir = Parameters::Get<Parameters::OutputDir>();
|
||||
|
||||
if (outputDir.empty())
|
||||
outputDir = ".";
|
||||
|
Loading…
Reference in New Issue
Block a user