Skip to content
Snippets Groups Projects
Commit a31551ca authored by Frederik Hennig's avatar Frederik Hennig
Browse files

Fix two compatibility issues

parent a2cf1e3e
No related branches found
No related tags found
1 merge request!172Changes for compatibility with pystencils 2.0
Pipeline #67967 passed with warnings
...@@ -43,7 +43,7 @@ def test_advanced_streaming_noslip_single_cell(stencil, streaming_pattern, prev_ ...@@ -43,7 +43,7 @@ def test_advanced_streaming_noslip_single_cell(stencil, streaming_pattern, prev_
index_struct_dtype = numpy_data_type_for_boundary_object(noslip, stencil.D) index_struct_dtype = numpy_data_type_for_boundary_object(noslip, stencil.D)
index_field = Field('indexVector', FieldType.INDEXED, index_struct_dtype, layout=[0], index_field = Field('indexVector', FieldType.INDEXED, index_struct_dtype, layout=[0],
shape=(TypedSymbol("indexVectorSize", np.int64), 1), strides=(1, 1)) shape=(TypedSymbol("indexVectorSize", np.int32), 1), strides=(1, 1))
index_vector = np.array([pos + (d,) for d in range(stencil.Q)], dtype=index_struct_dtype) index_vector = np.array([pos + (d,) for d in range(stencil.Q)], dtype=index_struct_dtype)
ast = create_lattice_boltzmann_boundary_kernel(pdf_field, ast = create_lattice_boltzmann_boundary_kernel(pdf_field,
......
...@@ -4,7 +4,13 @@ import numpy as np ...@@ -4,7 +4,13 @@ import numpy as np
import sympy as sp import sympy as sp
from lbmpy.scenarios import create_lid_driven_cavity from lbmpy.scenarios import create_lid_driven_cavity
from pystencils.cpu.cpujit import add_or_change_compiler_flags from lbmpy._compat import IS_PYSTENCILS_2
if IS_PYSTENCILS_2:
from pystencils.backend.jit.legacy_cpu import add_or_change_compiler_flags
else:
from pystencils.cpu.cpujit import add_or_change_compiler_flags
from pystencils.runhelper import ParameterStudy from pystencils.runhelper import ParameterStudy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment