Skip to content
Snippets Groups Projects

Upgrade SymPy Version & Extend CI

Merged Frederik Hennig requested to merge da15siwa/lbmpy:sympy-and-ci into master
Viewing commit 35979bb2
Show latest version
1 file
+ 12
1
Preferences
Compare changes
#%%
import pytest
import numpy as np
from dataclasses import replace
@@ -58,7 +59,13 @@ def flow_around_sphere(stencil, galilean_correction, fourth_order_correction, L_
boundary_assignments)
iter_slice = get_slice_before_ghost_layer((1,) + (0,) * (stencil.D - 1))
extrapolation_ast = create_kernel(
boundary_assignments, config=CreateKernelConfig(iteration_slice=iter_slice, ghost_layers=1, target=target))
boundary_assignments,
config=CreateKernelConfig(
iteration_slice=iter_slice,
ghost_layers=1,
target=target,
skip_independence_check=True)
)
return extrapolation_ast.compile()
dh = create_data_handling(channel_size, periodicity=False, default_layout='fzyx', default_target=target)
@@ -154,3 +161,7 @@ def test_flow_around_sphere_long(stencil, galilean_correction, fourth_order_corr
if fourth_order_correction and stencil.Q != 27:
pytest.skip("Fourth-order correction only defined for D3Q27 stencil.")
flow_around_sphere(stencil, galilean_correction, fourth_order_correction, 20, 3000)
#%%
test_flow_around_sphere_short(Stencil.D2Q9, False, False)
\ No newline at end of file