Commit 2d62dcaa authored by Markus Holzer's avatar Markus Holzer
Browse files

Minor changes

parent ad081175
Pipeline #38773 passed with stages
in 45 minutes and 19 seconds
...@@ -18,7 +18,7 @@ class LatticeBoltzmannBoundaryHandling(BoundaryHandling): ...@@ -18,7 +18,7 @@ class LatticeBoltzmannBoundaryHandling(BoundaryHandling):
""" """
def __init__(self, lb_method, data_handling, pdf_field_name, streaming_pattern='pull', def __init__(self, lb_method, data_handling, pdf_field_name, streaming_pattern='pull',
name="boundary_handling", flag_interface=None, target=Target.CPU, openmp=True): name="boundary_handling", flag_interface=None, target=Target.CPU, openmp=False):
self._lb_method = lb_method self._lb_method = lb_method
self._streaming_pattern = streaming_pattern self._streaming_pattern = streaming_pattern
self._inplace = is_inplace(streaming_pattern) self._inplace = is_inplace(streaming_pattern)
......
...@@ -99,7 +99,7 @@ def get_fluctuating_lb(size=None, kT=None, ...@@ -99,7 +99,7 @@ def get_fluctuating_lb(size=None, kT=None,
stream = create_stream_pull_with_output_kernel(collision.method, src, dst, stream = create_stream_pull_with_output_kernel(collision.method, src, dst,
{'density': rho, 'velocity': u}) {'density': rho, 'velocity': u})
config = ps.CreateKernelConfig(cpu_openmp=True, target=dh.default_target) config = ps.CreateKernelConfig(cpu_openmp=False, target=dh.default_target)
# Compile kernels # Compile kernels
stream_kernel = ps.create_kernel(stream, config=config).compile() stream_kernel = ps.create_kernel(stream, config=config).compile()
......
...@@ -42,7 +42,7 @@ def test_total_momentum(method_enum, force_model, omega): ...@@ -42,7 +42,7 @@ def test_total_momentum(method_enum, force_model, omega):
collision = create_lb_update_rule(lbm_config=lbm_config, lbm_optimisation=lbm_opt) collision = create_lb_update_rule(lbm_config=lbm_config, lbm_optimisation=lbm_opt)
config = ps.CreateKernelConfig(cpu_openmp=True, target=dh.default_target) config = ps.CreateKernelConfig(cpu_openmp=False, target=dh.default_target)
collision_kernel = ps.create_kernel(collision, config=config).compile() collision_kernel = ps.create_kernel(collision, config=config).compile()
......
...@@ -43,7 +43,7 @@ def test_free_slip(): ...@@ -43,7 +43,7 @@ def test_free_slip():
init = pdf_initialization_assignments(method, 1.0, (0, 0, 0), src.center_vector) init = pdf_initialization_assignments(method, 1.0, (0, 0, 0), src.center_vector)
config = ps.CreateKernelConfig(target=dh.default_target) config = ps.CreateKernelConfig(target=dh.default_target, cpu_openmp=False)
ast_init = ps.create_kernel(init, config=config) ast_init = ps.create_kernel(init, config=config)
kernel_init = ast_init.compile() kernel_init = ast_init.compile()
......
...@@ -42,7 +42,7 @@ exclude_lines = ...@@ -42,7 +42,7 @@ exclude_lines =
if __name__ == .__main__.: if __name__ == .__main__.:
skip_covered = True skip_covered = True
fail_under = 89 fail_under = 88
[html] [html]
directory = coverage_report directory = coverage_report
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