Skip to content

Commit

Permalink
Merge branch 'StaggeredBoundary' into 'master'
Browse files Browse the repository at this point in the history
[Fix] Staggered boundary creation

Closes #247

See merge request walberla/walberla!693
  • Loading branch information
Philipp Suffa committed Oct 23, 2024
2 parents 95399f2 + 7d526c5 commit b783153
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/pystencils_walberla/boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit b783153

Please sign in to comment.