From 35979bb26a7fc2092b0c518c520e20dd75badfbe Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Mon, 8 Jul 2024 11:23:41 +0200 Subject: [PATCH] fix flow-around-sphere test case --- tests/cumulantmethod/test_flow_around_sphere.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/cumulantmethod/test_flow_around_sphere.py b/tests/cumulantmethod/test_flow_around_sphere.py index ad5707bd..192a682e 100644 --- a/tests/cumulantmethod/test_flow_around_sphere.py +++ b/tests/cumulantmethod/test_flow_around_sphere.py @@ -1,3 +1,4 @@ +#%% 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 -- GitLab