Commit 97dea9d0 authored by itischler's avatar itischler
Browse files

Fixed test on gpu

parent 3a71611a
Pipeline #33337 passed with stages
in 19 minutes and 59 seconds
......@@ -55,12 +55,12 @@ width = 40 # of box
wall_thickness = 2
actual_width = width - wall_thickness # subtract boundary layer from box width
shear_velocity = 0.2 # scale by width to keep stable
t_max = 20000
t_max = 2000
@pytest.mark.parametrize('target', ('cpu', 'gpu', 'opencl'))
@pytest.mark.parametrize('stencil_name', ("D2Q9", "D3Q19",))
def test_poiseuille_channel(target, stencil_name):
def test_shear_flow(target, stencil_name):
# OpenCL and Cuda
if target == 'opencl':
import pytest
......@@ -118,7 +118,7 @@ def test_poiseuille_channel(target, stencil_name):
getter_eqs = cqc.output_equations_from_pdfs(src.center_vector,
{'moment2': p})
kernel_compute_p = ps.create_kernel(getter_eqs, ghost_layers=0).compile()
kernel_compute_p = ps.create_kernel(getter_eqs, **opts).compile()
# ## Set up the simulation
......
Markdown is supported
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