MeteoSwiss-APN / dawn

Compiler toolchain to enable generation of high-level DSLs for geophysical fluid dynamics models
MIT License
28 stars 30 forks source link

Wrong code generation of GT interval #82

Open cosunae opened 6 years ago

cosunae commented 6 years ago

In the following example:

vertical_region(k_start, k_start) {}
 vertical_region(k_start+1, k_end) {
// code
}

the empty interval for k_start is required, otherwise it generates an interval<0,0> for GT

https://github.com/MeteoSwiss-APN/clang-gridtools/blob/673a219112bcae1841bd199b9aa1c7eedf2af04b/src/dycore/horizontal_advection_wwcon.cpp#L95

we should remove that hack in the wwcon (and probably others) once GT solves this issue

cosunae commented 4 years ago

Most likely this was solved already in GT, but someone @lukasm91 @havogt should confirm