mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[properties] replace SET_SCALAR_PROP calls
This commit is contained in:
@@ -119,15 +119,40 @@ template<class TypeTag>
|
||||
struct EnableGravity<TypeTag, TTag::Tutorial1Problem> { static constexpr bool value = false; }; /*@\label{tutorial1:gravity}@*/
|
||||
|
||||
// define how long the simulation should run [s]
|
||||
SET_SCALAR_PROP(Tutorial1Problem, EndTime, 100e3); /*@\label{tutorial1:default-params-begin}@*/
|
||||
template<class TypeTag>
|
||||
struct EndTime<TypeTag, TTag::Tutorial1Problem>
|
||||
{
|
||||
using type = GetPropType<TypeTag, Scalar>;
|
||||
static constexpr type value = 100e3;
|
||||
}; /*@\label{tutorial1:default-params-begin}@*/
|
||||
|
||||
// define the size of the initial time step [s]
|
||||
SET_SCALAR_PROP(Tutorial1Problem, InitialTimeStepSize, 125.0);
|
||||
template<class TypeTag>
|
||||
struct InitialTimeStepSize<TypeTag, TTag::Tutorial1Problem>
|
||||
{
|
||||
using type = GetPropType<TypeTag, Scalar>;
|
||||
static constexpr type value = 125.0;
|
||||
};
|
||||
|
||||
// define the physical size of the problem's domain [m]
|
||||
SET_SCALAR_PROP(Tutorial1Problem, DomainSizeX, 300.0); /*@\label{tutorial1:grid-default-params-begin}@*/
|
||||
SET_SCALAR_PROP(Tutorial1Problem, DomainSizeY, 60.0);
|
||||
SET_SCALAR_PROP(Tutorial1Problem, DomainSizeZ, 0.0);
|
||||
template<class TypeTag>
|
||||
struct DomainSizeX<TypeTag, TTag::Tutorial1Problem>
|
||||
{
|
||||
using type = GetPropType<TypeTag, Scalar>;
|
||||
static constexpr type value = 300.0;
|
||||
}; /*@\label{tutorial1:grid-default-params-begin}@*/
|
||||
template<class TypeTag>
|
||||
struct DomainSizeY<TypeTag, TTag::Tutorial1Problem>
|
||||
{
|
||||
using type = GetPropType<TypeTag, Scalar>;
|
||||
static constexpr type value = 60.0;
|
||||
};
|
||||
template<class TypeTag>
|
||||
struct DomainSizeZ<TypeTag, TTag::Tutorial1Problem>
|
||||
{
|
||||
using type = GetPropType<TypeTag, Scalar>;
|
||||
static constexpr type value = 0.0;
|
||||
};
|
||||
|
||||
// // define the number of cells used for discretizing the physical domain
|
||||
template<class TypeTag>
|
||||
|
||||
Reference in New Issue
Block a user