Skip to content
Snippets Groups Projects
Commit 3a654e72 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fixed kwargs handling

parent 44ceead3
No related branches found
No related tags found
1 merge request!46Fix boundary kwargs
......@@ -65,7 +65,7 @@ class LatticeBoltzmannBoundaryHandling(BoundaryHandling):
return create_lattice_boltzmann_boundary_kernel(
symbolic_field, symbolic_index_field, self._lb_method, boundary_obj,
prev_timestep=prev_timestep, streaming_pattern=self._streaming_pattern,
target=self._target, openmp=self._openmp)
target=self._target, cpu_openmp=self._openmp)
class InplaceStreamingBoundaryInfo(object):
......@@ -175,7 +175,7 @@ class LbmWeightInfo(CustomCodeNode):
def create_lattice_boltzmann_boundary_kernel(pdf_field, index_field, lb_method, boundary_functor,
prev_timestep=Timestep.BOTH, streaming_pattern='pull',
target='cpu', openmp=True, **kernel_creation_args):
target='cpu', **kernel_creation_args):
index_dtype = index_field.dtype.numpy_dtype.fields['dir'][0]
offsets_dtype = index_field.dtype.numpy_dtype.fields['x'][0]
......@@ -193,8 +193,7 @@ def create_lattice_boltzmann_boundary_kernel(pdf_field, index_field, lb_method,
elements = [Assignment(dir_symbol, index_field[0]('dir'))]
elements += boundary_assignments.all_assignments
print(kernel_creation_args)
kernel = create_indexed_kernel(elements, [index_field], target=target, cpu_openmp=openmp, **kernel_creation_args)
kernel = create_indexed_kernel(elements, [index_field], target=target, **kernel_creation_args)
# Code Elements ahead of the loop
index_arrs_node = indexing.create_code_node()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment