From 6b38151cb0181eec44955c8c37556d4654a69bc4 Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Fri, 30 Oct 2020 10:25:12 +0100
Subject: [PATCH] Allow **kernel_creation_args in create_boundary_kernel

---
 pystencils/boundaries/boundaryhandling.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pystencils/boundaries/boundaryhandling.py b/pystencils/boundaries/boundaryhandling.py
index b80d3c72f..81d9766a7 100644
--- a/pystencils/boundaries/boundaryhandling.py
+++ b/pystencils/boundaries/boundaryhandling.py
@@ -442,10 +442,11 @@ class BoundaryOffsetInfo(CustomCodeNode):
     INV_DIR_SYMBOL = TypedSymbol("invdir", "int")
 
 
-def create_boundary_kernel(field, index_field, stencil, boundary_functor, target='cpu', openmp=True):
+def create_boundary_kernel(field, index_field, stencil, boundary_functor, target='cpu', openmp=True,
+                           **kernel_creation_args):
     elements = [BoundaryOffsetInfo(stencil)]
     index_arr_dtype = index_field.dtype.numpy_dtype
     dir_symbol = TypedSymbol("dir", index_arr_dtype.fields['dir'][0])
     elements += [Assignment(dir_symbol, index_field[0]('dir'))]
     elements += boundary_functor(field, direction_symbol=dir_symbol, index_field=index_field)
-    return create_indexed_kernel(elements, [index_field], target=target, cpu_openmp=openmp)
+    return create_indexed_kernel(elements, [index_field], target=target, cpu_openmp=openmp, **kernel_creation_args)
-- 
GitLab