Commit ffee727a authored by Martin Bauer's avatar Martin Bauer
Browse files

Bugfix: absolute accessing of pystencils fields on GPU

parent f8b509bc
......@@ -432,7 +432,10 @@ def resolve_field_accesses(ast_node, read_only_field_names=set(),
for e in group_param:
if e < field.spatial_dimensions:
if field.name in field_to_fixed_coordinates:
coordinates[e] = field_to_fixed_coordinates[field.name][e]
if not field_access.is_absolute_access:
coordinates[e] = field_to_fixed_coordinates[field.name][e]
else:
coordinates[e] = 0
else:
if not field_access.is_absolute_access:
coordinates[e] = ast.LoopOverCoordinate.get_loop_counter_symbol(e)
......
Markdown is supported
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