Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
c6ceef74
Commit
c6ceef74
authored
Sep 17, 2021
by
Ivan Buntic
Committed by
Timo Koch
Oct 26, 2021
Browse files
[disc][porousmediumflow] Use discretization tag instead of enum as template argument.
parent
e2bd2cd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
dumux/flux/forchheimerslaw_fwd.hh
View file @
c6ceef74
...
...
@@ -40,7 +40,7 @@ class ForchheimersLawImplementation
static_assert
(
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>::
discMethod
==
DiscretizationMethods
::
cctpfa
||
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>::
discMethod
==
DiscretizationMethods
::
box
,
"Forchheimer only implemented for cctpfa or box!"
)
"Forchheimer only implemented for cctpfa or box!"
);
};
...
...
dumux/porousmediumflow/fluxvariablescache.hh
View file @
c6ceef74
...
...
@@ -32,7 +32,7 @@
namespace
Dumux
{
// forward declaration
template
<
class
TypeTag
,
DiscretizationMethod
discMethod
>
template
<
class
TypeTag
,
class
DiscretizationMethod
>
class
PorousMediumFluxVariablesCacheImplementation
;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
@@ -50,12 +50,12 @@ class PorousMediumFluxVariablesCacheImplementation;
* cache class are provided for different combinations of processes.
*/
template
<
class
TypeTag
>
using
PorousMediumFluxVariablesCache
=
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>::
d
iscMethod
>
;
using
PorousMediumFluxVariablesCache
=
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
typename
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>::
D
isc
retization
Method
>
;
//! We only store discretization-related quantities for the box method. Thus, we need no
//! physics-dependent specialization and simply inherit from the physics-independent implementation.
template
<
class
TypeTag
>
class
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
DiscretizationMethod
::
b
ox
>
class
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
DiscretizationMethod
s
::
B
ox
>
:
public
BoxFluxVariablesCache
<
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
,
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>>
{
public:
...
...
@@ -77,7 +77,7 @@ template<class TypeTag> class EnergyCacheChooser<TypeTag, true> : public GetProp
// specialization for the cell centered tpfa method
template
<
class
TypeTag
>
class
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
DiscretizationMethod
::
cct
pfa
>
class
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
DiscretizationMethod
s
::
CCT
pfa
>
:
public
AdvectionCacheChooser
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>::
enableAdvection
()
>
,
public
DiffusionCacheChooser
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>::
enableMolecularDiffusion
()
>
,
public
EnergyCacheChooser
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>::
enableEnergyBalance
()
>
...
...
@@ -90,7 +90,7 @@ public:
//! Specialization of the flux variables cache for the cell centered finite volume mpfa scheme.
//! Stores data which is commonly used by all the different types of processes.
template
<
class
TypeTag
>
class
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
DiscretizationMethod
::
ccm
pfa
>
class
PorousMediumFluxVariablesCacheImplementation
<
TypeTag
,
DiscretizationMethod
s
::
CCM
pfa
>
:
public
AdvectionCacheChooser
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>::
enableAdvection
()
>
,
public
DiffusionCacheChooser
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>::
enableMolecularDiffusion
()
>
,
public
EnergyCacheChooser
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>::
enableEnergyBalance
()
>
...
...
dumux/porousmediumflow/fluxvariablescachefiller.hh
View file @
c6ceef74
...
...
@@ -35,7 +35,7 @@
namespace
Dumux
{
// forward declaration
template
<
class
TypeTag
,
DiscretizationMethod
discMethod
>
template
<
class
TypeTag
,
class
DiscretizationMethod
>
class
PorousMediumFluxVariablesCacheFillerImplementation
;
/*!
...
...
@@ -45,11 +45,11 @@ class PorousMediumFluxVariablesCacheFillerImplementation;
* Helps filling the flux variables cache depending several policies
*/
template
<
class
TypeTag
>
using
PorousMediumFluxVariablesCacheFiller
=
PorousMediumFluxVariablesCacheFillerImplementation
<
TypeTag
,
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>::
d
iscMethod
>
;
using
PorousMediumFluxVariablesCacheFiller
=
PorousMediumFluxVariablesCacheFillerImplementation
<
TypeTag
,
typename
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>::
D
isc
retization
Method
>
;
//! Specialization of the flux variables cache filler for the cell centered tpfa method
template
<
class
TypeTag
>
class
PorousMediumFluxVariablesCacheFillerImplementation
<
TypeTag
,
DiscretizationMethod
::
cct
pfa
>
class
PorousMediumFluxVariablesCacheFillerImplementation
<
TypeTag
,
DiscretizationMethod
s
::
CCT
pfa
>
{
using
ModelTraits
=
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>
;
using
Problem
=
GetPropType
<
TypeTag
,
Properties
::
Problem
>
;
...
...
@@ -188,7 +188,7 @@ private:
//! Specialization of the flux variables cache filler for the cell centered mpfa method
template
<
class
TypeTag
>
class
PorousMediumFluxVariablesCacheFillerImplementation
<
TypeTag
,
DiscretizationMethod
::
ccm
pfa
>
class
PorousMediumFluxVariablesCacheFillerImplementation
<
TypeTag
,
DiscretizationMethod
s
::
CCM
pfa
>
{
using
ModelTraits
=
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>
;
using
Problem
=
GetPropType
<
TypeTag
,
Properties
::
Problem
>
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment