Skip to content
Snippets Groups Projects
Commit 7d526c56 authored by Markus Holzer's avatar Markus Holzer Committed by Philipp Suffa
Browse files

[Fix] Staggered boundary creation

parent e6ef56cb
No related merge requests found
......@@ -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)
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