mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fvbaseproperties.hh: put setting of defaults values in separate section
increases overview
This commit is contained in:
parent
59a246e178
commit
3730ce659e
@ -50,25 +50,10 @@ struct FvBaseDiscretization
|
|||||||
} // namespace TTag
|
} // namespace TTag
|
||||||
|
|
||||||
|
|
||||||
//! set the splices for the finite volume discretizations
|
|
||||||
template<class TypeTag, class MyTypeTag>
|
template<class TypeTag, class MyTypeTag>
|
||||||
struct LinearSolverSplice { using type = UndefinedProperty; };
|
struct LinearSolverSplice { using type = UndefinedProperty; };
|
||||||
template<class TypeTag, class MyTypeTag>
|
template<class TypeTag, class MyTypeTag>
|
||||||
struct LocalLinearizerSplice { using type = UndefinedProperty; };
|
struct LocalLinearizerSplice { using type = UndefinedProperty; };
|
||||||
template<class TypeTag>
|
|
||||||
struct Splices<TypeTag, TTag::FvBaseDiscretization>
|
|
||||||
{
|
|
||||||
using type = std::tuple<GetSplicePropType<TypeTag, TTag::FvBaseDiscretization, Properties::LinearSolverSplice>,
|
|
||||||
GetSplicePropType<TypeTag, TTag::FvBaseDiscretization, Properties::LocalLinearizerSplice>>;
|
|
||||||
};
|
|
||||||
|
|
||||||
//! use a parallel BiCGStab linear solver by default
|
|
||||||
template<class TypeTag>
|
|
||||||
struct LinearSolverSplice<TypeTag, TTag::FvBaseDiscretization> { using type = TTag::ParallelBiCGStabLinearSolver; };
|
|
||||||
|
|
||||||
//! by default, use finite differences to linearize the system of PDEs
|
|
||||||
template<class TypeTag>
|
|
||||||
struct LocalLinearizerSplice<TypeTag, TTag::FvBaseDiscretization> { using type = TTag::FiniteDifferenceLocalLinearizer; };
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Representation of a function evaluation and all necessary derivatives with
|
* \brief Representation of a function evaluation and all necessary derivatives with
|
||||||
@ -256,6 +241,26 @@ struct UseVolumetricResidual { using type = UndefinedProperty; };
|
|||||||
template<class TypeTag, class MyTypeTag>
|
template<class TypeTag, class MyTypeTag>
|
||||||
struct EnableExperiments { using type = UndefinedProperty; };
|
struct EnableExperiments { using type = UndefinedProperty; };
|
||||||
|
|
||||||
|
// Set defaults
|
||||||
|
|
||||||
|
//! set the splices for the finite volume discretizations
|
||||||
|
template<class TypeTag>
|
||||||
|
struct Splices<TypeTag, TTag::FvBaseDiscretization>
|
||||||
|
{
|
||||||
|
using type = std::tuple<GetSplicePropType<TypeTag, TTag::FvBaseDiscretization, Properties::LinearSolverSplice>,
|
||||||
|
GetSplicePropType<TypeTag, TTag::FvBaseDiscretization, Properties::LocalLinearizerSplice>>;
|
||||||
|
};
|
||||||
|
|
||||||
|
//! use a parallel BiCGStab linear solver by default
|
||||||
|
template<class TypeTag>
|
||||||
|
struct LinearSolverSplice<TypeTag, TTag::FvBaseDiscretization>
|
||||||
|
{ using type = TTag::ParallelBiCGStabLinearSolver; };
|
||||||
|
|
||||||
|
//! by default, use finite differences to linearize the system of PDEs
|
||||||
|
template<class TypeTag>
|
||||||
|
struct LocalLinearizerSplice<TypeTag, TTag::FvBaseDiscretization>
|
||||||
|
{ using type = TTag::FiniteDifferenceLocalLinearizer; };
|
||||||
|
|
||||||
} // namespace Opm::Properties
|
} // namespace Opm::Properties
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user