Closed mroethlin closed 3 years ago
So far we failed to ensure location type consistency in between the conditional, then and else branch of of an IfStmt. This allowed code like:
IfStmt
@stencil def if_condition(hC_x: Field[Cell], boundary_edges: Field[Edge]): with levels_downward: if boundary_edges: hC_x = 0
To go through the pipeline, being generated into potentially unsafe code.
Fixes #1064
See above
Death- and positive tests added to TestUnstructuredDimensionsChecker with simple as well as nested if statements
TestUnstructuredDimensionsChecker
This PR is independent.
launch jenkins
Technical Description
So far we failed to ensure location type consistency in between the conditional, then and else branch of of an
IfStmt
. This allowed code like:To go through the pipeline, being generated into potentially unsafe code.
Resolves / Enhances
Fixes #1064
Example
See above
Testing
Death- and positive tests added to
TestUnstructuredDimensionsChecker
with simple as well as nested if statementsDependencies
This PR is independent.