Skip to content
Snippets Groups Projects
Commit 1c721028 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

Workaround as field duplication is broken

parent a31551ca
No related branches found
No related tags found
1 merge request!172Changes for compatibility with pystencils 2.0
Pipeline #67975 passed
...@@ -626,8 +626,17 @@ def create_lb_update_rule(collision_rule=None, lbm_config=None, lbm_optimisation ...@@ -626,8 +626,17 @@ def create_lb_update_rule(collision_rule=None, lbm_config=None, lbm_optimisation
if lbm_optimisation.symbolic_temporary_field is not None: if lbm_optimisation.symbolic_temporary_field is not None:
dst_field = lbm_optimisation.symbolic_temporary_field dst_field = lbm_optimisation.symbolic_temporary_field
# else:
# FIXME: Field duplication is currently broken in pystencils.
# dst_field = src_field.new_field_with_different_name(lbm_config.temporary_field_name)
elif src_field.has_fixed_shape:
field_size = src_field.shape
dst_field = Field.create_fixed_size(lbm_config.temporary_field_name, field_size, index_dimensions=1,
layout=lbm_optimisation.field_layout, dtype=fallback_field_data_type)
else: else:
dst_field = src_field.new_field_with_different_name(lbm_config.temporary_field_name) dst_field = Field.create_generic(lbm_config.temporary_field_name, spatial_dimensions=collision_rule.method.dim,
index_shape=(q,), layout=lbm_optimisation.field_layout,
dtype=fallback_field_data_type)
kernel_type = lbm_config.kernel_type kernel_type = lbm_config.kernel_type
if kernel_type == 'stream_pull_only': if kernel_type == 'stream_pull_only':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment