You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently installed https://github.com/meom-group/CDFTOOLS on the Jasmin platform here in the UK. When I tried to compile this with key_CMIP6, this error came up:
& (/'uo','vo','wo','zos',(' ', ji=jp_sqdvarmax-5,jp_sqdvarmax) /)
1
Error: Different CHARACTER lengths (2/3) in array constructor at (1)
11:25
& (/'zos','thetao',(' ', ji=3,jp_cubvarmax) /)
1
Error: Different CHARACTER lengths (3/6) in array constructor at (1)
According to stackoverflow, the F90 standard says you are not allowed to have character strings of different lengths in a declaration like this. It seems gfortran insists on this to the letter, while ifort is more tolerant. I padded out the short strings in both cases so that they were all the same length, and this compiled successfully. Is this a known feature of this release?
The text was updated successfully, but these errors were encountered:
amegann
changed the title
Compilation issues with fort
Compilation issues with gfort
Oct 28, 2020
amegann
changed the title
Compilation issues with gfort
Compilation issues with gfortran
Oct 28, 2020
I recently installed https://github.com/meom-group/CDFTOOLS on the Jasmin platform here in the UK. When I tried to compile this with key_CMIP6, this error came up:
& (/'uo','vo','wo','zos',(' ', ji=jp_sqdvarmax-5,jp_sqdvarmax) /)
1
Error: Different CHARACTER lengths (2/3) in array constructor at (1)
11:25
& (/'zos','thetao',(' ', ji=3,jp_cubvarmax) /)
1
Error: Different CHARACTER lengths (3/6) in array constructor at (1)
According to stackoverflow, the F90 standard says you are not allowed to have character strings of different lengths in a declaration like this. It seems gfortran insists on this to the letter, while ifort is more tolerant. I padded out the short strings in both cases so that they were all the same length, and this compiled successfully. Is this a known feature of this release?
The text was updated successfully, but these errors were encountered: