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

fix flow-around-sphere test case

parent 885e77d1
No related branches found
No related tags found
1 merge request!169Upgrade SymPy Version & Extend CI
Pipeline #67384 canceled
#%%
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment