diff --git a/dumux/flux/box/dispersionflux.hh b/dumux/flux/box/dispersionflux.hh index 0e496e569ecf17967dd88f33f935d2374a098621..b1a6c6d1cac254802d17d3e2133c344d20f8196b 100644 --- a/dumux/flux/box/dispersionflux.hh +++ b/dumux/flux/box/dispersionflux.hh @@ -58,8 +58,9 @@ class DispersionFluxImplementation<TypeTag, DiscretizationMethods::Box, referenc using SubControlVolumeFace = typename GridGeometry::SubControlVolumeFace; using Extrusion = Extrusion_t<GridGeometry>; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; - using ElementFluxVariablesCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVarCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVariablesCache = typename GridFluxVariablesCache::LocalView; + using FluxVarCache = typename GridFluxVariablesCache::FluxVariablesCache; using FluxVariables = GetPropType<TypeTag, Properties::FluxVariables>; using FluxTraits = typename Dumux::FluxTraits<FluxVariables>; using BalanceEqOpts = GetPropType<TypeTag, Properties::BalanceEqOpts>; diff --git a/dumux/flux/box/fickslaw.hh b/dumux/flux/box/fickslaw.hh index f802f6ec7f9afeaab4475c825aa504f8fa12ef02..5099a17cf7a7b276fac0a1713b49e0f0252a5768 100644 --- a/dumux/flux/box/fickslaw.hh +++ b/dumux/flux/box/fickslaw.hh @@ -60,8 +60,9 @@ class FicksLawImplementation<TypeTag, DiscretizationMethods::Box, referenceSyste using SubControlVolumeFace = typename GridGeometry::SubControlVolumeFace; using Extrusion = Extrusion_t<GridGeometry>; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; - using ElementFluxVariablesCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVarCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVariablesCache = typename GridFluxVariablesCache::LocalView; + using FluxVarCache = typename GridFluxVariablesCache::FluxVariablesCache; using BalanceEqOpts = GetPropType<TypeTag, Properties::BalanceEqOpts>; using GridView = typename GetPropType<TypeTag, Properties::GridGeometry>::GridView; using Element = typename GridView::template Codim<0>::Entity; diff --git a/dumux/flux/ccmpfa/fickslaw.hh b/dumux/flux/ccmpfa/fickslaw.hh index 071a9b2e230db1a355d1791c9020477b4d792887..4681a060dcb4b3c961c569c796e9b946ddbda8cd 100644 --- a/dumux/flux/ccmpfa/fickslaw.hh +++ b/dumux/flux/ccmpfa/fickslaw.hh @@ -57,8 +57,9 @@ class FicksLawImplementation<TypeTag, DiscretizationMethods::CCMpfa, referenceSy using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; - using ElementFluxVariablesCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVariablesCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVariablesCache = typename GridFluxVariablesCache::LocalView; + using FluxVariablesCache = typename GridFluxVariablesCache::FluxVariablesCache; using BalanceEqOpts = GetPropType<TypeTag, Properties::BalanceEqOpts>; static constexpr int numComponents = GetPropType<TypeTag, Properties::ModelTraits>::numFluidComponents(); diff --git a/dumux/flux/ccmpfa/fourierslaw.hh b/dumux/flux/ccmpfa/fourierslaw.hh index c094d4abed78a36fd396328877160887171a8319..af476d6be8f6d517f79aa298c880cbfbd5478f81 100644 --- a/dumux/flux/ccmpfa/fourierslaw.hh +++ b/dumux/flux/ccmpfa/fourierslaw.hh @@ -55,8 +55,9 @@ class FouriersLawImplementation<TypeTag, DiscretizationMethods::CCMpfa> using FVElementGeometry = typename GridGeometry::LocalView; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; - using ElementFluxVarsCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVariablesCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVarsCache = typename GridFluxVariablesCache::LocalView; + using FluxVariablesCache = typename GridFluxVariablesCache::FluxVariablesCache; //! Class that fills the cache corresponding to mpfa Darcy's Law class MpfaFouriersLawCacheFiller diff --git a/dumux/flux/cctpfa/dispersionflux.hh b/dumux/flux/cctpfa/dispersionflux.hh index 4a77270c3e1ee50e2b05c4856987d55b56644e55..e3428afa204e2113c185abf7d25cfcc2aaeef64c 100644 --- a/dumux/flux/cctpfa/dispersionflux.hh +++ b/dumux/flux/cctpfa/dispersionflux.hh @@ -59,8 +59,9 @@ class DispersionFluxImplementation<TypeTag, DiscretizationMethods::CCTpfa, refer using SubControlVolumeFace = typename GridGeometry::SubControlVolumeFace; using Extrusion = Extrusion_t<GridGeometry>; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; - using ElementFluxVariablesCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVarCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVariablesCache = typename GridFluxVariablesCache::LocalView; + using FluxVarCache = typename GridFluxVariablesCache::FluxVariablesCache; using FluxVariables = GetPropType<TypeTag, Properties::FluxVariables>; using FluxTraits = typename Dumux::FluxTraits<FluxVariables>; using BalanceEqOpts = GetPropType<TypeTag, Properties::BalanceEqOpts>; diff --git a/dumux/flux/cctpfa/fickslaw.hh b/dumux/flux/cctpfa/fickslaw.hh index 7876e600e10a2c092cf7cba2eb4f0f0024d1aa86..66ad159965bb7de6377ba32bb94cdaa3039e143e 100644 --- a/dumux/flux/cctpfa/fickslaw.hh +++ b/dumux/flux/cctpfa/fickslaw.hh @@ -60,8 +60,9 @@ class FicksLawImplementation<TypeTag, DiscretizationMethods::CCTpfa, referenceSy using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; using VolumeVariables = typename ElementVolumeVariables::VolumeVariables; using Element = typename GridView::template Codim<0>::Entity; - using ElementFluxVariablesCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVariablesCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVariablesCache = typename GridFluxVariablesCache::LocalView; + using FluxVariablesCache = typename GridFluxVariablesCache::FluxVariablesCache; using BalanceEqOpts = GetPropType<TypeTag, Properties::BalanceEqOpts>; using ModelTraits = GetPropType<TypeTag, Properties::ModelTraits>; diff --git a/dumux/flux/cctpfa/fourierslaw.hh b/dumux/flux/cctpfa/fourierslaw.hh index ac3b95b99cd5c2b2440d963fe3bbf0ab1b8d9889..03bc4affc19314e6247268b149aeffde630de370 100644 --- a/dumux/flux/cctpfa/fourierslaw.hh +++ b/dumux/flux/cctpfa/fourierslaw.hh @@ -55,8 +55,9 @@ class FouriersLawImplementation<TypeTag, DiscretizationMethods::CCTpfa> using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; using VolumeVariables = typename ElementVolumeVariables::VolumeVariables; using Element = typename GridView::template Codim<0>::Entity; - using ElementFluxVarsCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVariablesCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVarsCache = typename GridFluxVariablesCache::LocalView; + using FluxVariablesCache = typename GridFluxVariablesCache::FluxVariablesCache; static const int dim = GridView::dimension; static const int dimWorld = GridView::dimensionworld; diff --git a/dumux/flux/cctpfa/maxwellstefanslaw.hh b/dumux/flux/cctpfa/maxwellstefanslaw.hh index 89f3a1a48a61850a5f84341a24eec32c20edf1aa..b567b05722ce5e69f8409066f63ef4bc32c2978e 100644 --- a/dumux/flux/cctpfa/maxwellstefanslaw.hh +++ b/dumux/flux/cctpfa/maxwellstefanslaw.hh @@ -61,8 +61,9 @@ class MaxwellStefansLawImplementation<TypeTag, DiscretizationMethods::CCTpfa, re using VolumeVariables = GetPropType<TypeTag, Properties::VolumeVariables>; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; using Element = typename GridView::template Codim<0>::Entity; - using ElementFluxVariablesCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVariablesCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElementFluxVariablesCache = typename GridFluxVariablesCache::LocalView; + using FluxVariablesCache = typename GridFluxVariablesCache::FluxVariablesCache; using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; static const int dim = GridView::dimension; diff --git a/dumux/porenetwork/2p/model.hh b/dumux/porenetwork/2p/model.hh index 61c3df98f6ec3e92afcf7dedaa4e54bbdc9c2346..2782d1d44ee1d8149dd7d6a168e33072f0037e33 100644 --- a/dumux/porenetwork/2p/model.hh +++ b/dumux/porenetwork/2p/model.hh @@ -57,6 +57,7 @@ #include <dumux/common/properties.hh> #include <dumux/flux/porenetwork/advection.hh> +#include <dumux/flux/fluxvariablescaching.hh> #include <dumux/porenetwork/properties.hh> @@ -130,7 +131,10 @@ struct GridFluxVariablesCache<TypeTag, TTag::PNMTwoP> private: static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridFluxVariablesCache>(); using Problem = GetPropType<TypeTag, Properties::Problem>; - using FluxVariablesCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using Scalar = GetPropType<TypeTag, Properties::Scalar>; + using FluxVariablesCache = GetPropTypeOr<TypeTag, + Properties::FluxVariablesCache, FluxVariablesCaching::EmptyCache<Scalar> + >; using Traits = PoreNetwork::PNMTwoPDefaultGridFVCTraits<Problem, FluxVariablesCache>; public: using type = PoreNetwork::PNMTwoPGridFluxVariablesCache<Problem, FluxVariablesCache, enableCache, Traits>; diff --git a/dumux/porousmediumflow/2p1c/darcyslaw.hh b/dumux/porousmediumflow/2p1c/darcyslaw.hh index f687bfd1c40ff3d726014237775876d43d49d72d..61e5aeee6cb80f01b7af206af9cfb4d536748213 100644 --- a/dumux/porousmediumflow/2p1c/darcyslaw.hh +++ b/dumux/porousmediumflow/2p1c/darcyslaw.hh @@ -52,8 +52,8 @@ class TwoPOneCDarcysLaw : public DarcysLaw<TypeTag> using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; - using ElemFluxVarCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView; - using FluxVarCache = GetPropType<TypeTag, Properties::FluxVariablesCache>; + using GridFluxVariablesCache = GetPropType<TypeTag, Properties::GridFluxVariablesCache>; + using ElemFluxVarCache = typename GridFluxVariablesCache::LocalView; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; using VolumeVariables = GetPropType<TypeTag, Properties::VolumeVariables>; using GridView = typename GetPropType<TypeTag, Properties::GridGeometry>::GridView;