Improve ability to expand array accesses to full range accesses when we have an elemental function #2875
Labels
enhancement
NG-ARCH
Issues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCH
Currently we create a Codeblock for WHERE accesses like Rob found in UKCA:
Since we have information on the Intrinsic (and non-intrisic call, which currently behaves wrong) on the
is_elemental
status, we can do better.The basic idea of this fix is to modify
fparser2.py
line 4396 onwards to do:We should also be careful, and if
is_elemental
is None we should still create a codeblock, as in that case we don't know the status of theis_elemental
result so its not safe for us to turn the WHERE statement into a Loop.The text was updated successfully, but these errors were encountered: