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
Zimmermann, Veit
dune-curvedgeometry
Commits
09321e23
Commit
09321e23
authored
Jul 13, 2021
by
Praetorius, Simon
Browse files
Remove deprecated type-traits
parent
8a9a9ab4
Changes
4
Hide whitespace changes
Inline
Side-by-side
dune/curvedgeometry/curvedgeometry.hh
View file @
09321e23
...
...
@@ -171,9 +171,9 @@ public:
* \param[in] param parametrization function with signature GlobalCoordiante(LocalCoordinate)`
* \param[in] args... additional arguments to construct the local finite-element cache \ref localFECache_
**/
template
<
class
Param
etrization
,
class
...
Args
,
std
::
enable_if_t
<
S
td
::
is_
callable
<
Parametrization
(
Loc
alCoordinate
),
Glob
alCoordinate
>
::
value
,
bool
>
=
true
>
CurvedGeometry
(
const
ReferenceElement
&
refElement
,
Param
etrization
&&
param
,
Args
&&
...
args
)
template
<
class
Param
,
class
...
Args
,
std
::
enable_if_t
<
s
td
::
is_
invocable_r_v
<
Glob
alCoordinate
,
Param
,
Loc
alCoordinate
>,
bool
>
=
true
>
CurvedGeometry
(
const
ReferenceElement
&
refElement
,
Param
&&
param
,
Args
&&
...
args
)
:
CurvedGeometry
(
Private
{},
refElement
,
std
::
forward
<
Args
>
(
args
)...)
{
const
auto
&
localInterpolation
=
localFE_
.
localInterpolation
();
...
...
@@ -634,19 +634,20 @@ public:
public:
template
<
class
...
Args
>
CurvedGeometry
(
const
ReferenceElement
&
refElement
,
std
::
vector
<
GlobalCoordinate
>
vertices
,
Args
&&
...)
CurvedGeometry
(
const
ReferenceElement
&
refElement
,
std
::
vector
<
GlobalCoordinate
>
vertices
,
Args
&&
...)
:
Super
(
refElement
,
std
::
move
(
vertices
))
{}
template
<
class
Param
etrization
,
class
...
Args
,
std
::
enable_if_t
<
S
td
::
is_
callable
<
Parametrization
(
Loc
alCoordinate
),
Glob
alCoordinate
>
::
value
,
bool
>
=
true
>
CurvedGeometry
(
const
ReferenceElement
&
refElement
,
Param
etrization
&&
param
,
Args
&&
...)
template
<
class
Param
,
class
...
Args
,
std
::
enable_if_t
<
s
td
::
is_
invocable_r_v
<
Glob
alCoordinate
,
Param
,
Loc
alCoordinate
>,
bool
>
=
true
>
CurvedGeometry
(
const
ReferenceElement
&
refElement
,
Param
&&
param
,
Args
&&
...)
:
Super
(
refElement
,
std
::
vector
<
GlobalCoordinate
>
{
param
(
refElement
.
position
(
0
,
0
))})
{}
template
<
class
Param
etrization
,
class
...
Args
>
CurvedGeometry
(
GeometryType
gt
,
Param
etrization
&&
param
,
Args
&&
...)
:
CurvedGeometry
(
ReferenceElements
::
general
(
gt
),
std
::
forward
<
Param
etrization
>
(
param
))
template
<
class
Param
,
class
...
Args
>
CurvedGeometry
(
GeometryType
gt
,
Param
&&
param
,
Args
&&
...)
:
CurvedGeometry
(
ReferenceElements
::
general
(
gt
),
std
::
forward
<
Param
>
(
param
))
{}
std
::
optional
<
LocalCoordinate
>
checkedLocal
(
const
GlobalCoordinate
&
globalCoord
)
const
...
...
dune/curvedgeometry/localfunctiongeometry.hh
View file @
09321e23
...
...
@@ -71,7 +71,7 @@ public:
using
LocalCoordinate
=
typename
LG
::
LocalCoordinate
;
/// type of global coordinates
using
GlobalCoordinate
=
std
::
result_
of_
t
<
LF
(
typename
LG
::
GlobalCoordinate
)
>
;
using
GlobalCoordinate
=
std
::
invoke_
result_t
<
LF
,
typename
LG
::
GlobalCoordinate
>
;
/// coordinate type
using
ctype
=
typename
LocalCoordinate
::
value_type
;
...
...
dune/curvedgeometry/parametrizedgeometry.hh
View file @
09321e23
...
...
@@ -164,10 +164,10 @@ public:
* \param[in] localFE Local finite-element to use for the parametrization
* \param[in] param parametrization function with signature GlobalCoordinate(LocalCoordinate)`
**/
template
<
class
Param
etrization
,
std
::
enable_if_t
<
S
td
::
is_
callable
<
Parametrization
(
Loc
alCoordinate
),
Glob
alCoordinate
>
::
value
,
bool
>
=
true
>
template
<
class
Param
,
std
::
enable_if_t
<
s
td
::
is_
invocable_r_v
<
Glob
alCoordinate
,
Param
,
Loc
alCoordinate
>,
bool
>
=
true
>
ParametrizedGeometry
(
const
ReferenceElement
&
refElement
,
const
LocalFiniteElement
&
localFE
,
Param
etrization
&&
param
)
Param
&&
param
)
:
refElement_
(
refElement
)
,
localFE_
(
localFE
)
{
...
...
@@ -602,7 +602,7 @@ ParametrizedGeometry (Geo::ReferenceElement<I>, const LFE&, std::vector<GlobalCo
->
ParametrizedGeometry
<
LFE
,
GlobalCoordinate
::
dimension
>
;
template
<
class
I
,
class
LFE
,
class
F
,
class
Range
=
std
::
result_
of_
t
<
F
(
Impl
::
LocalCoordinate_t
<
LFE
>
)
>>
class
Range
=
std
::
invoke_
result_t
<
F
,
Impl
::
LocalCoordinate_t
<
LFE
>
>>
ParametrizedGeometry
(
Geo
::
ReferenceElement
<
I
>
,
const
LFE
&
,
const
F
&
)
->
ParametrizedGeometry
<
LFE
,
Range
::
dimension
>
;
...
...
@@ -611,7 +611,7 @@ ParametrizedGeometry (GeometryType, const LFE& localFE, std::vector<GlobalCoordi
->
ParametrizedGeometry
<
LFE
,
GlobalCoordinate
::
dimension
>
;
template
<
class
LFE
,
class
F
,
class
Range
=
std
::
result_
of_
t
<
F
(
Impl
::
LocalCoordinate_t
<
LFE
>
)
>>
class
Range
=
std
::
invoke_
result_t
<
F
,
Impl
::
LocalCoordinate_t
<
LFE
>
>>
ParametrizedGeometry
(
GeometryType
,
const
LFE
&
,
const
F
&
)
->
ParametrizedGeometry
<
LFE
,
Range
::
dimension
>
;
...
...
dune/curvedgeometry/test/test-localfunctiongeometry.cc
View file @
09321e23
...
...
@@ -49,7 +49,7 @@ public:
using
Domain
=
typename
Geometry
::
GlobalCoordinate
;
using
LocalDomain
=
typename
Geometry
::
LocalCoordinate
;
using
Range
=
std
::
result_
of_
t
<
Functor
(
Domain
)
>
;
using
Range
=
std
::
invoke_
result_t
<
Functor
,
Domain
>
;
using
Signature
=
Range
(
LocalDomain
);
public:
...
...
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