diff --git a/hog/operator_generation/indexing.py b/hog/operator_generation/indexing.py index 7db2fd7e4667b1deb6abb7970539f3155b7cfc65..37591034987c49ac79da0fcaa7fb8c64d2bd0513 100644 --- a/hog/operator_generation/indexing.py +++ b/hog/operator_generation/indexing.py @@ -356,9 +356,9 @@ class IndexingInfo: and num_microfaces_per_face, num_microcells_per_cell, for discontinuous galerkin. These are required for all indexing maps.""" - def __init__(self, ctx: KernelCreationContext): + def __init__(self): uint_t = UInt(64) - idx_t = ctx.index_dtype + idx_t = DynamicType.INDEX_TYPE self.level = TypedSymbol("level", uint_t) self.micro_edges_per_macro_edge = TypedSymbol( diff --git a/hog/operator_generation/operators.py b/hog/operator_generation/operators.py index ea5ecb040226dbf84e97384b585c903a1ae48200..a51eb593c606222efe309681a09d608e0fd1a366 100644 --- a/hog/operator_generation/operators.py +++ b/hog/operator_generation/operators.py @@ -1011,7 +1011,7 @@ class HyTeGElementwiseOperator: quad_loop = [] # Some required input parameters - indexing_info = IndexingInfo(ctx) + indexing_info = IndexingInfo() # Vertex coordinates of the micro element. # Only used for non-affine blending maps. diff --git a/hog_tests/operator_generation/test_indexing.py b/hog_tests/operator_generation/test_indexing.py index 907c8ae858f6bb250e84c9f0fcccbd2bacef55f4..cdebad9453fd873c4f039af47fabe6524cb36f9a 100644 --- a/hog_tests/operator_generation/test_indexing.py +++ b/hog_tests/operator_generation/test_indexing.py @@ -16,7 +16,6 @@ from typing import Union, Tuple -from pystencils.backend.kernelcreation import KernelCreationContext from sympy.core.cache import clear_cache from hog.element_geometry import TetrahedronElement, TriangleElement, ElementGeometry @@ -258,7 +257,7 @@ def test_micro_vertex_to_edge_indices(): def test_micro_volume_to_volume_indices(): clear_cache() - indexingInfo = IndexingInfo(KernelCreationContext()) + indexingInfo = IndexingInfo() hog.operator_generation.indexing.USE_SYMPY_INT_DIV = True def test_element_type_on_level(