stfc / PSyclone

Domain-specific compiler and code transformation system for Finite Difference/Volume/Element Earth-system models in Fortran
BSD 3-Clause "New" or "Revised" License
103 stars 25 forks source link

[PSyIR] Recognise array access in a Fortran executable statement #864

Open rupertford opened 3 years ago

rupertford commented 3 years ago

The Fortran2003 rule hierarchy does not distinguish between a scalar and an array assignment. Therefore the same rule hierarchy will be created in both cases. This means that it is up to fparser2reader to distinguish when creating PSyIR.

arporter commented 2 years ago

Is this still an issue @rupertford now that we support array assignments?

rupertford commented 2 years ago

I'm not sure. It could be about Fortran a = b + c where the variables may be scalars or arrays which I presume we simply pass through as a reference to the PSyIR at the moment.