Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
3709281b
Commit
3709281b
authored
6 years ago
by
René Heß
Browse files
Options
Downloads
Patches
Plain Diff
Document and cleanup
parent
f80ca52e
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
python/dune/codegen/sumfact/accumulation.py
+12
-2
12 additions, 2 deletions
python/dune/codegen/sumfact/accumulation.py
with
12 additions
and
2 deletions
python/dune/codegen/sumfact/accumulation.py
+
12
−
2
View file @
3709281b
...
...
@@ -176,11 +176,21 @@ class AccumulationOutput(SumfactKernelInterfaceBase, ImmutableRecord):
def
accumulate_output
(
self
,
sf
,
result
,
insn_dep
,
inames
=
None
,
additional_inames
=
()):
trial_leaf_element
=
get_leaf
(
self
.
trial_element
,
self
.
trial_element_index
)
if
self
.
trial_element
is
not
None
else
None
# Note: Using matrix_sequence_quadrature_permuted is ok in this place since:
#
# - If the grid is unstructured we assume that the polynomial degree
# for each direction is the same.
#
# - If the grid is structured the quadrature permuted matrix sequence
# is the same as the original one. We still need to call this one
# since VectorizedSumfactKernels do not have the matrix_sequence
# attribute.
basis_size
=
tuple
(
mat
.
basis_size
for
mat
in
sf
.
matrix_sequence_quadrature_permuted
)
if
get_option
(
'
grid_unstructured
'
):
assert
len
(
set
(
basis_size
))
==
1
if
inames
is
None
:
inames
=
tuple
(
accum_iname
(
trial_leaf_element
,
mat
.
rows
,
i
)
for
i
,
mat
in
enumerate
(
sf
.
matrix_sequence_quadrature_permuted
))
inames
=
tuple
(
accum_iname
(
trial_leaf_element
,
size
,
i
)
for
i
,
size
in
enumerate
(
basis_size
))
# Determine the expression to accumulate with. This depends on the vectorization strategy!
from
dune.codegen.tools
import
maybe_wrap_subscript
...
...
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