mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: move the VtkWritePhasePresence parameter to Opm::Parameters
This commit is contained in:
parent
4d8b6afa1d
commit
8f536c74b4
@ -27,31 +27,32 @@
|
|||||||
#ifndef EWOMS_VTK_PHASE_PRESENCE_MODULE_HH
|
#ifndef EWOMS_VTK_PHASE_PRESENCE_MODULE_HH
|
||||||
#define EWOMS_VTK_PHASE_PRESENCE_MODULE_HH
|
#define EWOMS_VTK_PHASE_PRESENCE_MODULE_HH
|
||||||
|
|
||||||
#include "vtkmultiwriter.hh"
|
|
||||||
#include "baseoutputmodule.hh"
|
|
||||||
|
|
||||||
#include <opm/models/discretization/common/fvbaseparameters.hh>
|
#include <opm/models/discretization/common/fvbaseparameters.hh>
|
||||||
|
|
||||||
|
#include <opm/models/io/baseoutputmodule.hh>
|
||||||
|
#include <opm/models/io/vtkmultiwriter.hh>
|
||||||
|
|
||||||
#include <opm/models/utils/parametersystem.hh>
|
#include <opm/models/utils/parametersystem.hh>
|
||||||
#include <opm/models/utils/propertysystem.hh>
|
#include <opm/models/utils/propertysystem.hh>
|
||||||
|
|
||||||
namespace Opm::Properties {
|
namespace Opm::Properties::TTag {
|
||||||
|
|
||||||
namespace TTag {
|
|
||||||
|
|
||||||
// create new type tag for the VTK primary variables output
|
// create new type tag for the VTK primary variables output
|
||||||
struct VtkPhasePresence {};
|
struct VtkPhasePresence {};
|
||||||
|
|
||||||
} // namespace TTag
|
} // namespace Opm::Properties::TTag
|
||||||
|
|
||||||
|
namespace Opm::Parameters {
|
||||||
|
|
||||||
// create the property tags needed for the primary variables module
|
// create the property tags needed for the primary variables module
|
||||||
template<class TypeTag, class MyTypeTag>
|
template<class TypeTag, class MyTypeTag>
|
||||||
struct VtkWritePhasePresence { using type = UndefinedProperty; };
|
struct VtkWritePhasePresence { using type = Properties::UndefinedProperty; };
|
||||||
|
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct VtkWritePhasePresence<TypeTag, TTag::VtkPhasePresence> { static constexpr bool value = false; };
|
struct VtkWritePhasePresence<TypeTag, Properties::TTag::VtkPhasePresence>
|
||||||
|
{ static constexpr bool value = false; };
|
||||||
|
|
||||||
} // namespace Opm::Properties
|
} // namespace Opm::Parameters
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
/*!
|
/*!
|
||||||
@ -85,7 +86,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
static void registerParameters()
|
static void registerParameters()
|
||||||
{
|
{
|
||||||
Parameters::registerParam<TypeTag, Properties::VtkWritePhasePresence>
|
Parameters::registerParam<TypeTag, Parameters::VtkWritePhasePresence>
|
||||||
("Include the phase presence pseudo primary "
|
("Include the phase presence pseudo primary "
|
||||||
"variable in the VTK output files");
|
"variable in the VTK output files");
|
||||||
}
|
}
|
||||||
@ -135,7 +136,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
static bool phasePresenceOutput_()
|
static bool phasePresenceOutput_()
|
||||||
{
|
{
|
||||||
static bool val = Parameters::get<TypeTag, Properties::VtkWritePhasePresence>();
|
static bool val = Parameters::get<TypeTag, Parameters::VtkWritePhasePresence>();
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user