loki
loki copied to clipboard
Shape inference from allocations should be a utility/transformation
The Scheduler
constructor call _infer_allocatable_shapes
(https://github.com/ecmwf-ifs/loki/blob/main/loki/subroutine.py#L131) routinely for every object. This is a remnant of the early days of Loki development and should be moved into the shape-handling transformation utility.