Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
fufem
dune-fufem
Commits
36bf1861
Commit
36bf1861
authored
2 months ago
by
Carsten Gräser
Browse files
Options
Downloads
Patches
Plain Diff
Make matrix/vector traversal termination work with proxy types
parent
432a70c4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!258
Add constraints support for dune-functions basis
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem/backends/traversal.hh
+3
-2
3 additions, 2 deletions
dune/fufem/backends/traversal.hh
with
3 additions
and
2 deletions
dune/fufem/backends/traversal.hh
+
3
−
2
View file @
36bf1861
...
...
@@ -8,6 +8,7 @@
#include
<functional>
#include
<variant>
#include
<dune/common/typetraits.hh>
#include
<dune/common/rangeutilities.hh>
#include
<dune/common/hybridutilities.hh>
...
...
@@ -115,7 +116,7 @@ namespace Dune::Fufem::Impl {
template
<
class
Entry
,
class
FlatIndex
>
void
operator
()(
Entry
&&
vector_i
,
FlatIndex
i
)
{
if
constexpr
(
Dune
::
IsNumber
<
std
::
decay_t
<
Entry
>>::
value
)
if
constexpr
(
Dune
::
IsNumber
<
typename
Dune
::
AutonomousValueType
<
std
::
decay_t
<
Entry
>>::
type
>::
value
)
f_
(
vector_i
,
extendMultiIndex
(
index_
,
i
));
else
Impl
::
forEachVectorEntry
(
vector_i
,
Dune
::
Fufem
::
Impl
::
RecursiveVectorVisitor
(
f_
,
extendMultiIndex
(
index_
,
i
)));
...
...
@@ -141,7 +142,7 @@ namespace Dune::Fufem::Impl {
template
<
class
Entry
,
class
FlatRowIndex
,
class
FlatColIndex
>
void
operator
()(
Entry
&&
matrix_ij
,
FlatRowIndex
i
,
FlatColIndex
j
)
{
if
constexpr
(
Dune
::
IsNumber
<
std
::
decay_t
<
Entry
>>::
value
)
if
constexpr
(
Dune
::
IsNumber
<
typename
Dune
::
AutonomousValueType
<
std
::
decay_t
<
Entry
>>::
type
>::
value
)
f_
(
matrix_ij
,
extendMultiIndex
(
rowIndex_
,
i
),
extendMultiIndex
(
colIndex_
,
j
));
else
Impl
::
forEachMatrixEntry
(
matrix_ij
,
Dune
::
Fufem
::
Impl
::
RecursiveMatrixVisitor
(
f_
,
extendMultiIndex
(
rowIndex_
,
i
),
extendMultiIndex
(
colIndex_
,
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