-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
NAMEIssues related to processing NAME with PSyclone.Issues related to processing NAME with PSyclone.NG-ARCHIssues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCHIssues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCHbugsocrates
Description
When accessing (at least) one file in Socrates PSyclone changes the order of variable declaration, which is resulting in compiler error due to undefined variable.
The file in question is gas_list_pcf.f90, at some point there is a variable defined as:
INTEGER, PRIVATE :: i
later in the file during the various reshape calls, this i variable is used.
IN the file output by PSyclone, the outputs are reordered such that some accesses to i are used before its definition:
&public :: threshold_wavelength = RESHAPE([REAL(KIND = RealK) :: 246.0E-09_RealK, 242.0E-09_RealK, 175.0E-09_RealK, &
&134.0E-09_RealK, 129.0E-09_RealK, (0.0_RealK, i = 1, npd_products - 5), 227.5E-09_RealK, 167.1E-09_RealK, 128.6E-09_RealK, &
&108.2E-09_RealK, 89.922E-09_RealK, 65.026E-09_RealK, 63.693E-09_RealK, 54.655E-09_RealK, (0.0_RealK, i = 1, npd_products - 8), &
..... rest of this definition
... string array definition
integer, private :: i
This happens in some other files too, e.g. refract_re_ccf.f90
Metadata
Metadata
Assignees
Labels
NAMEIssues related to processing NAME with PSyclone.Issues related to processing NAME with PSyclone.NG-ARCHIssues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCHIssues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCHbugsocrates