Skip to content
Snippets Groups Projects
Commit 2181a585 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/add-default-fluxcache-properties' into 'master'

Implement defaults for FluxVariablesCache(Filler) properties for mpfa/tpfa

Closes #867

See merge request !2153

(cherry picked from commit d6bb6553)

88016531 [properties][fluxvariables] add defaults for FluxVariablesCache(Filler)
parent 398f8fb8
No related branches found
No related tags found
1 merge request!2157Merge branch 'fix/add-default-fluxcache-properties' into 'master'
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include <dumux/assembly/cclocalresidual.hh> #include <dumux/assembly/cclocalresidual.hh>
#include <dumux/flux/fluxvariablescaching.hh>
#include <dumux/discretization/fvproperties.hh> #include <dumux/discretization/fvproperties.hh>
#include <dumux/discretization/cellcentered/elementsolution.hh> #include <dumux/discretization/cellcentered/elementsolution.hh>
...@@ -162,6 +164,14 @@ struct ElementBoundaryTypes<TypeTag, TTag::CCMpfaModel> { using type = CCElement ...@@ -162,6 +164,14 @@ struct ElementBoundaryTypes<TypeTag, TTag::CCMpfaModel> { using type = CCElement
//! Set the BaseLocalResidual to CCLocalResidual //! Set the BaseLocalResidual to CCLocalResidual
template<class TypeTag> template<class TypeTag>
struct BaseLocalResidual<TypeTag, TTag::CCMpfaModel> { using type = CCLocalResidual<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 Properties
} // namespace Dumux } // namespace Dumux
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include <dumux/assembly/cclocalresidual.hh> #include <dumux/assembly/cclocalresidual.hh>
#include <dumux/flux/fluxvariablescaching.hh>
#include <dumux/discretization/method.hh> #include <dumux/discretization/method.hh>
#include <dumux/discretization/fvproperties.hh> #include <dumux/discretization/fvproperties.hh>
...@@ -97,6 +99,14 @@ struct ElementBoundaryTypes<TypeTag, TTag::CCTpfaModel> { using type = CCElement ...@@ -97,6 +99,14 @@ struct ElementBoundaryTypes<TypeTag, TTag::CCTpfaModel> { using type = CCElement
//! Set the BaseLocalResidual to CCLocalResidual //! Set the BaseLocalResidual to CCLocalResidual
template<class TypeTag> template<class TypeTag>
struct BaseLocalResidual<TypeTag, TTag::CCTpfaModel> { using type = CCLocalResidual<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 Properties
} // namespace Dumux } // namespace Dumux
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment