Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem-forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
agnumpde
dune-fufem-forms
Commits
ca1a7bba
Commit
ca1a7bba
authored
Jun 6, 2023
by
graeser
Browse files
Options
Downloads
Patches
Plain Diff
Some hacks to make this compile with older dune versions and compilers
parent
848ce8df
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/fufem-forms/shapefunctioncache.hh
+10
-0
10 additions, 0 deletions
dune/fufem-forms/shapefunctioncache.hh
dune/fufem-forms/unaryoperators.hh
+4
-4
4 additions, 4 deletions
dune/fufem-forms/unaryoperators.hh
with
14 additions
and
4 deletions
dune/fufem-forms/shapefunctioncache.hh
+
10
−
0
View file @
ca1a7bba
...
...
@@ -29,7 +29,17 @@ namespace Dune::Fufem::Forms::Impl {
if
constexpr
(
sizeof
...(
T
)
==
0
)
return
container
;
else
#if DUNE_VERSION_GT(DUNE_TYPETREE, 2, 9)
return
accessByTreePath
(
container
[
path
.
front
()],
pop_front
(
path
));
#else
{
auto
head
=
path
[
Dune
::
Indices
::
_0
];
auto
tailPath
=
Dune
::
unpackIntegerSequence
([
&
](
auto
...
i
){
return
Dune
::
TypeTree
::
treePath
(
path
[
Dune
::
index_constant
<
i
+
1
>
{}]...);
},
std
::
make_index_sequence
<
sizeof
...(
T
)
-
1
>
());
return
accessByTreePath
(
container
[
head
],
tailPath
);
}
#endif
}
...
...
This diff is collapsed.
Click to expand it.
dune/fufem-forms/unaryoperators.hh
+
4
−
4
View file @
ca1a7bba
...
...
@@ -139,7 +139,7 @@ namespace Dune::Fufem::Forms {
else
if
constexpr
(
Node
::
isPower
and
Node
::
ChildType
::
isLeaf
)
return
[
&
](
const
auto
&
i
)
{
using
Field
=
typename
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
RangeFieldType
;
constexpr
auto
components
=
Node
::
degree
();
static
constexpr
auto
components
=
Node
::
degree
();
auto
componentIndex
=
i
/
leafNode_
->
size
();
auto
shapeFunctionIndex
=
i
%
leafNode_
->
size
();
auto
result
=
Dune
::
FieldVector
<
Field
,
components
>
(
0
);
...
...
@@ -230,8 +230,8 @@ namespace Dune::Fufem::Forms {
return
Dune
::
MetaType
<
LeafFEJacobian
>
();
else
if
constexpr
(
Node
::
isPower
and
Node
::
ChildType
::
isLeaf
)
{
constexpr
auto
components
=
Node
::
degree
();
constexpr
auto
dimension
=
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
dimDomain
;
static
constexpr
auto
components
=
Node
::
degree
();
static
constexpr
auto
dimension
=
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
dimDomain
;
return
Dune
::
MetaType
<
Dune
::
FieldMatrix
<
LeafFERangeField
,
components
,
dimension
>>
();
}
}
...
...
@@ -439,7 +439,7 @@ namespace Dune::Fufem::Forms {
if
constexpr
(
Node
::
isLeaf
)
return
[
&
](
const
auto
&
i
)
{
using
Field
=
typename
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
RangeFieldType
;
constexpr
auto
dimension
=
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
dimDomain
;
static
constexpr
auto
dimension
=
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
dimDomain
;
auto
div
=
Field
{
0
};
for
(
std
::
size_t
j
=
0
;
j
<
dimension
;
++
j
)
div
+=
globalJacobians
[
i
][
j
][
j
];
...
...
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