Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issues with gfortran #37

Open
amegann opened this issue Oct 28, 2020 · 0 comments
Open

Compilation issues with gfortran #37

amegann opened this issue Oct 28, 2020 · 0 comments

Comments

@amegann
Copy link

amegann commented 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?

@amegann amegann changed the title Compilation issues with fort Compilation issues with gfort Oct 28, 2020
@amegann amegann changed the title Compilation issues with gfort Compilation issues with gfortran Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant