Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
0e8bf717
Commit
0e8bf717
authored
Feb 19, 2020
by
Praetorius, Simon
Browse files
replace explicit child type deduction with global type-traits
parent
7c8f35cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/localoperators/StokesOperator.hpp
View file @
0e8bf717
...
...
@@ -39,9 +39,10 @@ namespace AMDiS
static_assert
(
static_size_v
<
typename
LocalFct
::
Range
>
==
1
,
"Viscosity must be of scalar type."
);
using
VelocityNode
=
typename
Node
::
template
Child
<
0
>
::
type
;
using
VelocityCompNode
=
typename
VelocityNode
::
template
Child
<
0
>
::
type
;
using
PressureNode
=
typename
Node
::
template
Child
<
1
>
::
type
;
using
VelocityNode
=
Dune
::
TypeTree
::
Child
<
Node
,
0
>
;
using
VelocityCompNode
=
Dune
::
TypeTree
::
Child
<
Node
,
0
,
0
>
;
using
PressureNode
=
Dune
::
TypeTree
::
Child
<
Node
,
1
>
;
static_assert
(
VelocityNode
::
isPower
&&
PressureNode
::
isLeaf
,
""
);
using
namespace
Dune
::
Indices
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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