Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sander, Oliver
dune-gfe
Commits
a182a6c9
Commit
a182a6c9
authored
1 year ago
by
Sander, Oliver
Browse files
Options
Downloads
Patches
Plain Diff
Implement std::tuple_element and std::tuple_size for ProductManifold
parent
ba7a411e
No related branches found
Branches containing commit
No related tags found
1 merge request
!144
Steps towards using LocalIntegralEnergy instead of problem-specific energy classes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+3
-0
3 additions, 0 deletions
CHANGELOG.md
dune/gfe/spaces/productmanifold.hh
+23
-0
23 additions, 0 deletions
dune/gfe/spaces/productmanifold.hh
with
26 additions
and
0 deletions
CHANGELOG.md
+
3
−
0
View file @
a182a6c9
...
...
@@ -3,6 +3,9 @@
-
The
`RigidBodyMotion`
class has been removed. Please use
`ProductManifold<RealTuple,Rotation>`
from now on.
-
You can use
`std::tuple_element`
and
`std::tuple_size`
with
`ProductManifold`
s now.
-
Building the module requires CMake version 3.16 now, to be in line
with the current core modules.
...
...
This diff is collapsed.
Click to expand it.
dune/gfe/spaces/productmanifold.hh
+
23
−
0
View file @
a182a6c9
...
...
@@ -485,4 +485,27 @@ namespace Dune::GFE
std
::
tuple
<
TargetSpaces
...
>
data_
;
};
}
namespace
std
{
/** \brief Make std::tuple_element work for ProductManifold
*
* As a container it is essentially a std::tuple after all.
*/
template
<
size_t
i
,
typename
...
Args
>
struct
tuple_element
<
i
,
Dune
::
GFE
::
ProductManifold
<
Args
...
>
>
{
using
type
=
typename
std
::
tuple_element
<
i
,
std
::
tuple
<
Args
...
>
>::
type
;
};
/** \brief Make std::tuple_size work for ProductManifold
*
* As a container it is essentially a std::tuple after all.
*/
template
<
typename
...
Args
>
struct
tuple_size
<
Dune
::
GFE
::
ProductManifold
<
Args
...
>
>
:
std
::
integral_constant
<
std
::
size_t
,
sizeof
...(
Args
)
>
{};
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment