Commit 759a3921 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fixed macroscopic values test and flake8

parent 21122ee0
Pipeline #26875 failed with stage
in 16 minutes and 6 seconds
......@@ -209,4 +209,4 @@ class AdvancedStreamingBoundaryIndexing:
def _array_pattern(self, name, content):
return f"const int64_t {name} [] = {{ {content} }}; \n"
# end class AdvancedStreamingIndexing
\ No newline at end of file
# end class AdvancedStreamingIndexing
......@@ -69,11 +69,11 @@ def test_set_get_constant_velocity():
compressible=compressible, force=force)
size = (1, 1, 1)[:method.dim]
pdf_arr = np.zeros(size + (len(method.stencil),))
setter = compile_macroscopic_values_setter(method, pdf_arr=pdf_arr,
setter = compile_macroscopic_values_setter(method, pdf_arr=pdf_arr, ghost_layers=0,
quantities_to_set={'velocity': ref_velocity[:method.dim]}, )
setter(pdf_arr)
getter = compile_macroscopic_values_getter(method, ['velocity'], pdf_arr=pdf_arr)
getter = compile_macroscopic_values_getter(method, ['velocity'], pdf_arr=pdf_arr, ghost_layers=0)
velocity_output_field = np.zeros(size + (method.dim, ))
getter(pdfs=pdf_arr, velocity=velocity_output_field)
if method.dim == 2:
......
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