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
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
93c860c4
Commit
93c860c4
authored
2 years ago
by
graeser
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
ca1a7bba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem-forms/unaryoperators.hh
+4
-9
4 additions, 9 deletions
dune/fufem-forms/unaryoperators.hh
with
4 additions
and
9 deletions
dune/fufem-forms/unaryoperators.hh
+
4
−
9
View file @
93c860c4
...
...
@@ -138,11 +138,9 @@ 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
;
static
constexpr
auto
components
=
Node
::
degree
();
auto
result
=
Range
(
0
);
auto
componentIndex
=
i
/
leafNode_
->
size
();
auto
shapeFunctionIndex
=
i
%
leafNode_
->
size
();
auto
result
=
Dune
::
FieldVector
<
Field
,
components
>
(
0
);
result
[
componentIndex
]
=
values
[
shapeFunctionIndex
];
return
result
;
};
...
...
@@ -230,8 +228,8 @@ namespace Dune::Fufem::Forms {
return
Dune
::
MetaType
<
LeafFEJacobian
>
();
else
if
constexpr
(
Node
::
isPower
and
Node
::
ChildType
::
isLeaf
)
{
static
constexpr
auto
components
=
Node
::
degree
();
static
constexpr
auto
dimension
=
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
dimDomain
;
constexpr
auto
components
=
Node
::
degree
();
constexpr
auto
dimension
=
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
dimDomain
;
return
Dune
::
MetaType
<
Dune
::
FieldMatrix
<
LeafFERangeField
,
components
,
dimension
>>
();
}
}
...
...
@@ -304,12 +302,9 @@ namespace Dune::Fufem::Forms {
};
else
if
constexpr
(
Node
::
isPower
and
Node
::
ChildType
::
isLeaf
)
return
[
&
](
const
auto
&
i
)
{
using
F
=
typename
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
RangeFieldType
;
static
constexpr
auto
components
=
Node
::
degree
();
static
constexpr
auto
dimension
=
LeafNode
::
FiniteElement
::
Traits
::
LocalBasisType
::
Traits
::
dimDomain
;
auto
result
=
Range
(
0
);
auto
componentIndex
=
i
/
leafNode_
->
size
();
auto
shapeFunctionIndex
=
i
%
leafNode_
->
size
();
auto
result
=
Dune
::
FieldMatrix
<
F
,
components
,
dimension
>
(
0
);
result
[
componentIndex
]
=
globalJacobians
[
shapeFunctionIndex
][
0
];
return
result
;
};
...
...
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