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
107 stars 29 forks source link

Capture Fortran `data` initialisation into the symbol #2630

Open hiker opened 4 months ago

hiker commented 4 months ago

ATM, a single data statement will cause a whole module to be converted to a code block.

Since solving this properly will be too much effort (considering that a loop with potentially an implicit loop will not easily be converted to a language-independent representation), the existing work-around (e.g. named namelists) can be used to convert them to UnknownFortranType.