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 syntax error in cice_runmod.F90 by removing continuation #6

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

penguian
Copy link
Collaborator

@penguian penguian commented Jun 5, 2024

Closes #5 for the access-esm1.5 branch.

The code change has been tested by building the cice4 Spack package using the 5-syntax-error-in-cice_runmod-f90 branch instead of access-esm1.5, and the package builds successfully using both %[email protected] and %[email protected].

@penguian penguian self-assigned this Jun 5, 2024
@penguian
Copy link
Collaborator Author

penguian commented Jun 5, 2024

The syntax error described in #5 also exists in other branches, such as main ( https://github.com/ACCESS-NRI/cice4/blob/main/drivers/access-cm/CICE_RunMod.F90 ) and a separate issue should be raised if necessary.

@penguian penguian requested a review from anton-seaice July 30, 2024 01:08
@penguian penguian linked an issue Jul 30, 2024 that may be closed by this pull request
@anton-seaice
Copy link

The change looks good :)

Is the plan to keep the access-esm1.5 branch long term? Can we merge it with the main branch?

Why are we discovering this now? esm1.5 obviously already exists and can be built etc ...

@penguian
Copy link
Collaborator Author

@anton-seaice The released versions of ACCESS-ESM1.5 still use the access-esm1.5 version of CICE4. As far as I know the plan is to keep this branch for reproducibility purposes. @aidanheerdegen Is this correct?

Th reason why we are not hitting this problem all the time is that we are still using the 2019 version of the Intel Fortran compiler, and the issue was discovered when using the 2021 compiler. See issue #5

Copy link

@anton-seaice anton-seaice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the extra info.

Current builds use the %[email protected] compiler version (see - https://github.com/ACCESS-NRI/ACCESS-ESM1.5/blob/ee2345b33729473804d1c75f022feac3ea541a71/spack.yaml#L46) which compiles without this change. For support of new compilers, we need to fix this change.

I built current branch
spack install [email protected]%[email protected] arch=linux-rocky8-x86_64
-> success

I tried current branch with newer compiler

spack install [email protected]%intel2021.10.0 arch=linux-rocky8-x86_64
-> failed - per this issue

I built from this PR:

spack install cice4@3de3702cd27922cd77709d68075922a37302cbb6%[email protected] arch=linux-rocky8-x86_6

-> success

@penguian penguian force-pushed the 5-syntax-error-in-cice_runmod-f90 branch from 3de3702 to a2ca8da Compare November 13, 2024 06:04
@penguian
Copy link
Collaborator Author

I signed the most recent commit on the local branch using

git commit --amend --no-edit -S

then force pushed the local branch using

git push origin 5-syntax-error-in-cice_runmod-f90 --force

The commits compare as identical: https://github.com/ACCESS-NRI/cice4/compare/3de3702cd27922cd77709d68075922a37302cbb6..a2ca8da8632632339501d5bf23124356d15ec70b

@penguian penguian merged commit 24f55e8 into access-esm1.5 Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Syntax error in CICE_RunMod.F90
2 participants