-
Notifications
You must be signed in to change notification settings - Fork 20
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
check energy timestep_init and run phases needs to set error variables. #159
Labels
bug
Something isn't working
Comments
Thanks @nusbaume! I will fill the |
I've made #160 and this could be brought in together with another PR to main. Thanks again for noticing this. |
jimmielin
added a commit
that referenced
this issue
Nov 25, 2024
Originator(s): @jimmielin Summary (include the keyword ['closes', 'fixes', 'resolves'] and issue number): Fixes #159. b4b changes to include errmsg, errflg in the check_energy schemes Describe any changes made to the namelist: N/A List all files eliminated and why: N/A List all files added and what they do: N/A List all existing files that have been modified, and describe the changes: (Helpful git command: `git diff --name-status development...<your_branch_name>`) ``` Add errmsg, errflg (or set when not previously set) in check_energy schemes. M schemes/check_energy/check_energy_chng.F90 M schemes/check_energy/check_energy_fix.F90 M schemes/check_energy/check_energy_fix.meta M schemes/check_energy/check_energy_gmean/check_energy_gmean.F90 M schemes/check_energy/check_energy_gmean/check_energy_gmean.meta M schemes/check_energy/check_energy_save_teout.F90 M schemes/check_energy/check_energy_save_teout.meta M schemes/check_energy/check_energy_zero_fluxes.F90 M schemes/check_energy/check_energy_zero_fluxes.meta M schemes/check_energy/dycore_energy_consistency_adjust.F90 M schemes/check_energy/dycore_energy_consistency_adjust.meta ``` List any test failures: N/A Is this a science-changing update? New physics package, algorithm change, tuning changes, etc? No
Fixed in #160! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the
check_energy_chng
subroutines in thecheck_energy
schemes here:https://github.com/ESCOMP/atmospheric_physics/blob/main/schemes/check_energy/check_energy_chng.F90#L30
and here:
https://github.com/ESCOMP/atmospheric_physics/blob/main/schemes/check_energy/check_energy_chng.F90#L177
have
errmsg
anderrflg
variables that areintent(out)
, but which are not actually set to anything. This could potentially cause model crashes depending on the compiler configuration and error-checking method, so to be safe it would be good to at least set them to their default values, e.g.:I believe this change won't currently impact anything (it is more of a precaution), and thus could be brought in with any upcoming atmospheric_physics PR.
The text was updated successfully, but these errors were encountered: