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
412de977
Commit
412de977
authored
5 years ago
by
Marcel Koch
Browse files
Options
Downloads
Patches
Plain Diff
use indirect access only for jacobians
parent
721aef39
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/blockstructured/accumulation.py
+4
-4
4 additions, 4 deletions
python/dune/codegen/blockstructured/accumulation.py
with
4 additions
and
4 deletions
python/dune/codegen/blockstructured/accumulation.py
+
4
−
4
View file @
412de977
from
dune.codegen.blockstructured.tools
import
sub_element_inames
,
name_accumulation_alias
from
dune.codegen.generation
import
accumulation_mixin
,
instruction
from
dune.codegen.generation
import
accumulation_mixin
,
instruction
,
get_global_context_value
from
dune.codegen.loopy.target
import
dtype_floatingpoint
from
dune.codegen.options
import
get_form_option
from
dune.codegen.pdelab.geometry
import
world_dimension
,
name_intersection_geometry_wrapper
...
...
@@ -16,10 +16,10 @@ from loopy.match import Writes
@accumulation_mixin
(
"
blockstructured
"
)
class
BlockStructuredAccumulationMixin
(
GenericAccumulationMixin
):
def
generate_accumulation_instruction
(
self
,
expr
):
if
get_form_option
(
'
vectorization_blockstructured
'
):
return
generate_accumulation_instruction_vectorized
(
expr
,
self
)
else
:
if
get_global_context_value
(
"
form_type
"
)
==
"
jacobians
"
:
return
generate_accumulation_instruction
(
expr
,
self
)
else
:
return
generate_accumulation_instruction_vectorized
(
expr
,
self
)
@function_mangler
...
...
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