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

Fix ANU declaration after use for ifort compatibility #4

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

jimmielin
Copy link
Contributor

When building Cloud-J in GEOS-Chem with ifort I run into the following compile error:

src/Cloud-J/src/Core/fjx_sub_mod.f90(164): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name.   [ANU]
      integer, intent(in)                    :: ANU   ! cloud-j input

This is because the declarations of AERSP and NDXAER dimensions use ANU, but ANU is declared two lines later. It appears that ifort enforces the Fortran standard of declaration orders where ANU must come before all usage, so I moved the declaration so the code would build correctly.

Thanks!
Haipeng

@lizziel
Copy link
Contributor

lizziel commented Nov 17, 2023

Thanks for catching that!

@lizziel lizziel merged commit 867a70c into geoschem:geos-chem Nov 17, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants