Skip to content
Snippets Groups Projects

[BugFix] Fix indexing with ghostlayers

Closed Markus Holzer requested to merge holzer/pystencils:FixMod into master
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -133,6 +133,11 @@ def created_indexed_cuda_kernel(assignments: NodeCollection, config: CreateKerne
@@ -133,6 +133,11 @@ def created_indexed_cuda_kernel(assignments: NodeCollection, config: CreateKerne
assignments = assignments.all_assignments
assignments = assignments.all_assignments
assignments = add_types(assignments, config)
assignments = add_types(assignments, config)
 
for index_field in index_fields:
 
index_field.field_type = FieldType.INDEXED
 
assert FieldType.is_indexed(index_field)
 
assert index_field.spatial_dimensions == 1, "Index fields have to be 1D"
 
def get_coordinate_symbol_assignment(name):
def get_coordinate_symbol_assignment(name):
for ind_f in index_fields:
for ind_f in index_fields:
assert isinstance(ind_f.dtype, StructType), "Index fields have to have a struct data type"
assert isinstance(ind_f.dtype, StructType), "Index fields have to have a struct data type"
Loading