Skip to content

Draft: [FIX] Index fields exclusively containing coordinates are dropped by code generator

Frederik Hennig requested to merge da15siwa/pystencils:index_field_fix into master

Index fields that exclusively contain coordinate data (members x, y and z) and that are not explicitly accessed in the kernel assignments are dropped by pystencils.cpu.create_indexed_kernel in cpu/, prev. line 119. Then in line 128 the list of index fields is empty, and the code generator finds no field containing the coordinate information. Code generation then aborts.

Is there a reason why index fields are first filtered this way?

Merge request reports