diff --git a/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh b/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh index 29402f3e135d2d6f3cfc92c604c50d7469a5bb7a..f25401bf6cb2125000950d50a1795e6e931468c4 100644 --- a/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh +++ b/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh @@ -71,7 +71,7 @@ struct ReplaceCompEqIdx<TypeTag, TTag::DarcyOnePNC> { static constexpr int value //! Use a model with constant tortuosity for the effective diffusivity template<class TypeTag> -struct EffectiveDiffusivityModel<TypeTag, DarcyOnePNC> +struct EffectiveDiffusivityModel<TypeTag, TTag::DarcyOnePNC> { using type = DiffusivityConstantTortuosity<GetPropType<TypeTag, Properties::Scalar>>; }; // Set the grid type template<class TypeTag> diff --git a/exercises/exercise-mainfile/1pspatialparams.hh b/exercises/exercise-mainfile/1pspatialparams.hh index d15c8b53e75e0541c002c067ea2b65e94f152ac6..a7df1fd516c48b61e2c8c3a6c57325e0be49a3b6 100644 --- a/exercises/exercise-mainfile/1pspatialparams.hh +++ b/exercises/exercise-mainfile/1pspatialparams.hh @@ -36,6 +36,7 @@ namespace Dumux { template<class FVGridGeometry, class Scalar> class OnePTestSpatialParams : public FVSpatialParamsOneP<FVGridGeometry, Scalar, OnePTestSpatialParams<FVGridGeometry, Scalar>> +{ using GridView = typename FVGridGeometry::GridView; using Element = typename GridView::template Codim<0>::Entity; using FVElementGeometry = typename FVGridGeometry::LocalView; diff --git a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc index 31e5c53d7541b867785703dac90ee3105693dc4d..868ccc962c0e4119baa4546ebe9961f6c7884e61 100644 --- a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc +++ b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc @@ -54,16 +54,16 @@ namespace Dumux { namespace Properties { template<class TypeTag> -struct CouplingManager<TypeTag, TTag::StokesOnePTypeTag> +struct CouplingManager<TypeTag, TTag::StokesOneP> { - using Traits = StaggeredMultiDomainTraits<TypeTag, TypeTag, Properties::TTag::DarcyOnePTypeTag>; + using Traits = StaggeredMultiDomainTraits<TypeTag, TypeTag, Properties::TTag::DarcyOneP>; using type = Dumux::StokesDarcyCouplingManager<Traits>; }; template<class TypeTag> -struct CouplingManager<TypeTag, TTag::DarcyOnePTypeTag> +struct CouplingManager<TypeTag, TTag::DarcyOneP> { - using Traits = StaggeredMultiDomainTraits<Properties::TTag::StokesOnePTypeTag, Properties::TTag::StokesOnePTypeTag, TypeTag>; + using Traits = StaggeredMultiDomainTraits<Properties::TTag::StokesOneP, Properties::TTag::StokesOneP, TypeTag>; using type = Dumux::StokesDarcyCouplingManager<Traits>; }; @@ -85,8 +85,8 @@ int main(int argc, char** argv) try Parameters::init(argc, argv); // Define the sub problem type tags - using StokesTypeTag = Properties::TTag::StokesOnePTypeTag; - using DarcyTypeTag = Properties::TTag::DarcyOnePTypeTag; + using StokesTypeTag = Properties::TTag::StokesOneP; + using DarcyTypeTag = Properties::TTag::DarcyOneP; #if EXNUMBER < 3 // try to create a grid (from the given grid file or the input file) diff --git a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh index 0043c69bae0f9fcea2f7f2a777bdf2ffeecc1d77..79e7c8ea22269525a26f8706b52d5848c8b17014 100644 --- a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh +++ b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh @@ -82,8 +82,6 @@ template<class TypeTag> struct EnableGridFluxVariablesCache<TypeTag, TTag::StokesOneP> { static constexpr bool value = true; }; template<class TypeTag> struct EnableGridVolumeVariablesCache<TypeTag, TTag::StokesOneP> { static constexpr bool value = true; }; ->>>>>>> 812d3cb... [macros] Replace macros for solutions using the script - } /*! diff --git a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh index 4bd156f459d19b5708927cbc83986dd43ca846bd..9649b0e90872a90d423c0c526399c025bf4d551b 100644 --- a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh +++ b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh @@ -48,6 +48,7 @@ class DarcySubProblem; namespace Properties { // Create new type tags +namespace TTag { struct DarcyOneP { using InheritsFrom = std::tuple<OneP, CCTpfaModel>; }; } // end namespace TTag