diff --git a/transformations.py b/transformations.py index 6e43fd91265115f2b9df97e49357880273cf0d02..d3659807ccf300a052b90a6343ccf669ab51d94e 100644 --- a/transformations.py +++ b/transformations.py @@ -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)