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

Memoize world dim instead of expensive lookup

parent 57e7bff5
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ from loopy.match import Writes
import numpy as np
import pymbolic.primitives as prim
from pytools import memoize
@geometry_mixin("base")
class GeometryMixinBase(object):
......@@ -472,6 +474,7 @@ def name_in_cell_geometry(restriction):
return name
@memoize
def world_dimension():
data = get_global_context_value("data")
form = data.object_by_name[get_form_option("form")]
......
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