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
8fb1401c
Commit
8fb1401c
authored
Oct 01, 2021
by
Martin Utz
Committed by
Timo Koch
Oct 02, 2021
Browse files
Remove template parameter PrimaryVariables
The parameter PrimaryVariables is not needed and can be therefore removed.
parent
3159cda5
Changes
2
Show whitespace changes
Inline
Side-by-side
dumux/flux/shallowwaterviscousflux.hh
View file @
8fb1401c
...
...
@@ -57,8 +57,7 @@ static constexpr bool implementsFrictionLaw()
* by adding all surrounding shear stresses.
* For now implemented strictly for 2D depth-averaged models (i.e. 3 equations)
*/
template
<
class
PrimaryVariables
,
class
NumEqVector
,
typename
std
::
enable_if_t
<
NumEqVector
::
size
()
==
3
,
int
>
=
0
>
template
<
class
NumEqVector
,
typename
std
::
enable_if_t
<
NumEqVector
::
size
()
==
3
,
int
>
=
0
>
class
ShallowWaterViscousFlux
{
...
...
@@ -87,7 +86,7 @@ public:
const
ElementVolumeVariables
&
elemVolVars
,
const
typename
FVElementGeometry
::
SubControlVolumeFace
&
scvf
)
{
using
Scalar
=
typename
PrimaryVariables
::
value_type
;
using
Scalar
=
typename
NumEqVector
::
value_type
;
NumEqVector
localFlux
(
0.0
);
...
...
dumux/freeflow/shallowwater/model.hh
View file @
8fb1401c
...
...
@@ -161,7 +161,7 @@ struct AdvectionType<TypeTag, TTag::ShallowWater>
template
<
class
TypeTag
>
struct
ViscousFluxType
<
TypeTag
,
TTag
::
ShallowWater
>
{
using
type
=
ShallowWaterViscousFlux
<
GetPropType
<
TypeTag
,
Properties
::
PrimaryVariables
>
,
Dumux
::
NumEqVector
<
GetPropType
<
TypeTag
,
Properties
::
PrimaryVariables
>>
>
;
};
{
using
type
=
ShallowWaterViscousFlux
<
Dumux
::
NumEqVector
<
GetPropType
<
TypeTag
,
Properties
::
PrimaryVariables
>>
>
;
};
}
// end properties
}
// end namespace Dumux
...
...
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