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 potential uninitialised variable bug in E3SM buildlib files. #6868

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

mpaiao
Copy link
Contributor

@mpaiao mpaiao commented Dec 22, 2024

Add an else clause to two blocks in buildlib that are missing one.

[BFB]


At least with my computer, the compilation was issuing an "uninitialised risk" error. My understanding is that this risk occurs because variable netcdf_args was defined inside an if/elif block that had no else. My edits define a dummy value for netcdf_args that is empty for the else case.

@rljacob
Copy link
Member

rljacob commented Dec 23, 2024

Please remove the addition of .DS_store and the change to fates/main/FatesHistoryInterfaceMod.F90

At least with my computer, the compilation was crashing because
netcdf_args could be uninitialised because it was defined inside
an if/elif block that had no else.
@mpaiao
Copy link
Contributor Author

mpaiao commented Dec 23, 2024

Please remove the addition of .DS_store and the change to fates/main/FatesHistoryInterfaceMod.F90

Done!

@rljacob rljacob requested a review from jgfouca December 24, 2024 03:49
@rljacob rljacob self-assigned this Dec 24, 2024
@rljacob rljacob added the CIME label Dec 24, 2024
Copy link
Member

@jgfouca jgfouca left a comment

Choose a reason for hiding this comment

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

Thanks!

@rljacob rljacob changed the title Potential uninitialised variable bug in E3SM buildlib files. Fix potential uninitialised variable bug in E3SM buildlib files. Jan 10, 2025
rljacob added a commit that referenced this pull request Jan 22, 2025
Add an else clause to two blocks in buildlib that are missing one.

[BFB]
@rljacob rljacob merged commit 62823f4 into E3SM-Project:master Jan 22, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants