Skip to content
Snippets Groups Projects
Commit b7831537 authored by Philipp Suffa's avatar Philipp Suffa
Browse files

Merge branch 'StaggeredBoundary' into 'master'

[Fix] Staggered boundary creation

Closes #247

See merge request walberla/walberla!693
parents 95399f25 7d526c56
Branches
No related merge requests found
...@@ -132,11 +132,12 @@ def generate_staggered_boundary(generation_context, class_name, boundary_object, ...@@ -132,11 +132,12 @@ def generate_staggered_boundary(generation_context, class_name, boundary_object,
dim, neighbor_stencil, index_shape, target=Target.CPU, **kwargs): dim, neighbor_stencil, index_shape, target=Target.CPU, **kwargs):
assert dim == len(neighbor_stencil[0]) assert dim == len(neighbor_stencil[0])
generate_boundary(generation_context, class_name, boundary_object, 'field', neighbor_stencil, index_shape, 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, def generate_staggered_flux_boundary(generation_context, class_name, boundary_object,
dim, neighbor_stencil, index_shape, target=Target.CPU, **kwargs): dim, neighbor_stencil, index_shape, target=Target.CPU, **kwargs):
assert dim == len(neighbor_stencil[0]) assert dim == len(neighbor_stencil[0])
generate_boundary(generation_context, class_name, boundary_object, 'flux', neighbor_stencil, index_shape, 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