diff --git a/dumux/discretization/ccmpfa.hh b/dumux/discretization/ccmpfa.hh index 686dd176ddc0d6e78a30633fa3c87261b08aabce..bac664a2e40899845f7a18baee3e97da0e76bf82 100644 --- a/dumux/discretization/ccmpfa.hh +++ b/dumux/discretization/ccmpfa.hh @@ -33,6 +33,8 @@ #include <dumux/assembly/cclocalresidual.hh> +#include <dumux/flux/fluxvariablescaching.hh> + #include <dumux/discretization/fvproperties.hh> #include <dumux/discretization/cellcentered/elementsolution.hh> @@ -162,6 +164,14 @@ struct ElementBoundaryTypes<TypeTag, TTag::CCMpfaModel> { using type = CCElement //! Set the BaseLocalResidual to CCLocalResidual template<class TypeTag> struct BaseLocalResidual<TypeTag, TTag::CCMpfaModel> { using type = CCLocalResidual<TypeTag>; }; + +//! Set the default for the FluxVariablesCache +template<class TypeTag> +struct FluxVariablesCache<TypeTag, TTag::CCMpfaModel> { using type = FluxVariablesCaching::EmptyCache<GetPropType<TypeTag, Properties::Scalar>>; }; + +//! Set the default for the FluxVariablesCacheFiller +template<class TypeTag> +struct FluxVariablesCacheFiller<TypeTag, TTag::CCMpfaModel> { using type = FluxVariablesCaching::EmptyCacheFiller; }; } // namespace Properties } // namespace Dumux diff --git a/dumux/discretization/cctpfa.hh b/dumux/discretization/cctpfa.hh index 825d560b776feaf9cc6d1110432c1a464dfbc129..37709c03ed9b388692b5f55ebf02564b1ee60273 100644 --- a/dumux/discretization/cctpfa.hh +++ b/dumux/discretization/cctpfa.hh @@ -33,6 +33,8 @@ #include <dumux/assembly/cclocalresidual.hh> +#include <dumux/flux/fluxvariablescaching.hh> + #include <dumux/discretization/method.hh> #include <dumux/discretization/fvproperties.hh> @@ -97,6 +99,14 @@ struct ElementBoundaryTypes<TypeTag, TTag::CCTpfaModel> { using type = CCElement //! Set the BaseLocalResidual to CCLocalResidual template<class TypeTag> struct BaseLocalResidual<TypeTag, TTag::CCTpfaModel> { using type = CCLocalResidual<TypeTag>; }; + +//! Set the default for the FluxVariablesCache +template<class TypeTag> +struct FluxVariablesCache<TypeTag, TTag::CCTpfaModel> { using type = FluxVariablesCaching::EmptyCache<GetPropType<TypeTag, Properties::Scalar>>; }; + +//! Set the default for the FluxVariablesCacheFiller +template<class TypeTag> +struct FluxVariablesCacheFiller<TypeTag, TTag::CCTpfaModel> { using type = FluxVariablesCaching::EmptyCacheFiller; }; } // namespace Properties } // namespace Dumux