Skip to content
Snippets Groups Projects

Upgrade SymPy Version & Extend CI

Merged Frederik Hennig requested to merge da15siwa/lbmpy:sympy-and-ci into master
Compare and
4 files
+ 67
22
Preferences
Compare changes
Files
4
 
#%%
import pytest
import pytest
import numpy as np
import numpy as np
from dataclasses import replace
from dataclasses import replace
@@ -58,7 +59,13 @@ def flow_around_sphere(stencil, galilean_correction, fourth_order_correction, L_
@@ -58,7 +59,13 @@ def flow_around_sphere(stencil, galilean_correction, fourth_order_correction, L_
boundary_assignments)
boundary_assignments)
iter_slice = get_slice_before_ghost_layer((1,) + (0,) * (stencil.D - 1))
iter_slice = get_slice_before_ghost_layer((1,) + (0,) * (stencil.D - 1))
extrapolation_ast = create_kernel(
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()
return extrapolation_ast.compile()
dh = create_data_handling(channel_size, periodicity=False, default_layout='fzyx', default_target=target)
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
@@ -154,3 +161,7 @@ def test_flow_around_sphere_long(stencil, galilean_correction, fourth_order_corr
if fourth_order_correction and stencil.Q != 27:
if fourth_order_correction and stencil.Q != 27:
pytest.skip("Fourth-order correction only defined for D3Q27 stencil.")
pytest.skip("Fourth-order correction only defined for D3Q27 stencil.")
flow_around_sphere(stencil, galilean_correction, fourth_order_correction, 20, 3000)
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