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

Fix two compatibility issues

parent a2cf1e3e
1 merge request!172Draft: Changes for compatibility with pystencils 2.0
Pipeline #67967 passed with warnings with stages
in 27 minutes and 4 seconds
...@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment