From 7d526c56542bd9d331ef7f29858bec91c3c119d6 Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Wed, 23 Oct 2024 12:28:36 +0200
Subject: [PATCH] [Fix] Staggered boundary creation

---
 python/pystencils_walberla/boundary.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/pystencils_walberla/boundary.py b/python/pystencils_walberla/boundary.py
index 6e4ff76bb..7901d6f27 100644
--- a/python/pystencils_walberla/boundary.py
+++ b/python/pystencils_walberla/boundary.py
@@ -132,11 +132,12 @@ def generate_staggered_boundary(generation_context, class_name, boundary_object,
                                 dim, neighbor_stencil, index_shape, target=Target.CPU, **kwargs):
     assert dim == len(neighbor_stencil[0])
     generate_boundary(generation_context, class_name, boundary_object, 'field', neighbor_stencil, index_shape,
-                      FieldType.STAGGERED, target=target, **kwargs)
+                      spatial_shape=None, field_type=FieldType.STAGGERED, field_data_type=None, target=target, **kwargs)
 
 
 def generate_staggered_flux_boundary(generation_context, class_name, boundary_object,
                                      dim, neighbor_stencil, index_shape, target=Target.CPU, **kwargs):
     assert dim == len(neighbor_stencil[0])
     generate_boundary(generation_context, class_name, boundary_object, 'flux', neighbor_stencil, index_shape,
-                      FieldType.STAGGERED_FLUX, target=target, **kwargs)
+                      spatial_shape=None, field_type=FieldType.STAGGERED_FLUX, field_data_type=None, target=target,
+                      **kwargs)
-- 
GitLab