Skip to content
Snippets Groups Projects
Commit 14cceaa5 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Fix get_facedir/get_facemod in the absence of a visitor instance

parent b4311a42
No related branches found
No related tags found
No related merge requests found
...@@ -124,10 +124,9 @@ def sumfact_quadrature_permutation_strategy(dim, restriction): ...@@ -124,10 +124,9 @@ def sumfact_quadrature_permutation_strategy(dim, restriction):
# all others can be derived by rotating the cube and matching edge # all others can be derived by rotating the cube and matching edge
# directions. # directions.
def _order_on_self(restriction): def _order_on_self(restriction):
from dune.codegen.generation import get_global_context_value from dune.codegen.sumfact.accumulation import SumfactAccumulationMixin
visitor = get_global_context_value("visitor") facedir = SumfactAccumulationMixin.get_facedir(None, restriction)
facedir = visitor.get_facedir(restriction) facemod = SumfactAccumulationMixin.get_facemod(None, restriction)
facemod = visitor.get_facemod(restriction)
quadrature_order = { quadrature_order = {
(0, 0): (0, 1, 2), (0, 0): (0, 1, 2),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment