Skip to content
GitLab
Menu
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
108d80a8
Commit
108d80a8
authored
Oct 20, 2016
by
Praetorius, Simon
Browse files
removed size_type from dune:functions:XXXbasis
parent
f81fe982
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/amdis/utility/GetDegree.hpp
View file @
108d80a8
...
...
@@ -11,30 +11,30 @@
#include
<dune/amdis/common/Mpl.hpp>
namespace
AMDiS
namespace
AMDiS
{
namespace
Impl
{
// helper class to extract the polynomial degree of a pqk nodal basis
template
<
class
FeSpace
>
template
<
class
FeSpace
>
struct
GetDegree
:
int_
<
1
>
{};
template
<
class
GV
,
int
k
,
class
ST
>
struct
GetDegree
<
Dune
::
Functions
::
PQkNodalBasis
<
GV
,
k
,
ST
>
>
:
int_
<
k
>
{};
template
<
class
GV
,
int
k
,
class
ST
>
struct
GetDegree
<
Dune
::
Functions
::
LagrangeDGBasis
<
GV
,
k
,
ST
>
>
:
int_
<
k
>
{};
template
<
class
GV
,
class
ST
>
struct
GetDegree
<
Dune
::
Functions
::
PQ1NodalBasis
<
GV
,
ST
>
>
:
int_
<
1
>
{};
template
<
class
GV
,
class
ST
>
struct
GetDegree
<
Dune
::
Functions
::
TaylorHoodBasis
<
GV
,
ST
>
>
:
int_
<
2
>
{};
template
<
class
GV
,
int
k
>
struct
GetDegree
<
Dune
::
Functions
::
PQkNodalBasis
<
GV
,
k
>
>
:
int_
<
k
>
{};
template
<
class
GV
,
int
k
>
struct
GetDegree
<
Dune
::
Functions
::
LagrangeDGBasis
<
GV
,
k
>
>
:
int_
<
k
>
{};
template
<
class
GV
>
struct
GetDegree
<
Dune
::
Functions
::
PQ1NodalBasis
<
GV
>
>
:
int_
<
1
>
{};
template
<
class
GV
>
struct
GetDegree
<
Dune
::
Functions
::
TaylorHoodBasis
<
GV
>
>
:
int_
<
2
>
{};
}
// end namespace Impl
/// \brief Return the polynomial degree of a given FESpace. Falls back to 1 if unknown.
template
<
class
FeSpace
>
constexpr
int
getPolynomialDegree
=
Impl
::
GetDegree
<
FeSpace
>::
value
;
}
// end namespace AMDiS
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