Skip to content
Snippets Groups Projects

[BugFix] Fix indexing with ghostlayers

Closed Markus Holzer requested to merge holzer/pystencils:FixMod into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -127,7 +127,10 @@ def create_indexed_kernel(assignments: Union[AssignmentCollection, NodeCollectio
non_index_fields = [f for f in all_fields if f not in index_fields]
spatial_coordinates = {f.spatial_dimensions for f in non_index_fields}
assert len(spatial_coordinates) == 1, "Non-index fields do not have the same number of spatial coordinates"
assert len(spatial_coordinates) == 1, f"Non-index fields do not have the same number of spatial coordinates " \
f"Non index fields are {non_index_fields}, spatial coordinates are " \
f"{spatial_coordinates} and len(spatial coordiantes) is " \
f"{len(spatial_coordinates)}"
spatial_coordinates = list(spatial_coordinates)[0]
def get_coordinate_symbol_assignment(name):
Loading