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

Incorrect module and region names #2641

Closed hiker closed 4 months ago

hiker commented 4 months ago

In examples/gocean/eg5/profile, the output atm is:

 PreStart called for module 'invoke_0' region 'r0'
 PostEnd called for module 'invoke_0' region 'r0'
 PreStart called for module 'invoke_1_update_field' region 'r0'
 PostEnd called for module 'invoke_1_update_field' region 'r0'

while originally it was:

 PreStart called for module 'psy_test' region 'invoke_0:r0'
 PostEnd called for module 'psy_test' region 'invoke_0:r0'
 PreStart called for module 'psy_test' region 'invoke_1_update_field:update_field_code:r0'
 PostEnd called for module 'psy_test' region 'invoke_1_update_field:update_field_code:r0'

I am not sure where/when the module name was changed, I believe it should be psy_test as it was originally (since this is indeed the module).

Investigate why/when this was changed, and fix this issue.

Optionally: improve testing to check this output