Fix uninitialized variable bug and drop dead code#44
Conversation
fcaf64a to
b5aeca9
Compare
|
@aaraney The |
b5aeca9 to
ded0417
Compare
Co-authored-by: seyounger <seth.younger@noaa.gov>
ded0417 to
900f218
Compare
|
Preface, the CI failures are not related to this PR.
Failing
|
| Image Name | Label | gfortran installed |
|---|---|---|
| Ubuntu 24.04 | ubuntu-latest |
12.4.0, 13.3.0, 14.2.0 |
| Ubuntu 22.04 | ubuntu-22.04 |
10.5.0, 11.4.0, 12.3.0 |
| macOS 15 | macos-15-intel |
13, 14, 15 |
| macOS 15 Arm64 | macos-latest |
13, 14, 15 |
| macOS 14 | macos-14-large |
13, 14, 15 |
| macOS 14 Arm64 | macos-14 |
13, 14, 15 |
There are several solutions:
- Bump to GH actions across the org using the
ngen-submod-buildaction template fromUbuntu 22.04toUbuntu 24.04. Then use a later version ofgfortranacross the board. Maybegfortran-14? More work, but probably the right thing to do. - Don't specify
gfortranversion inngen-submod-buildGH action template. Downside is GH actions could use differentgfortranversions. This will make debugging more difficult. - Make
macOSworkflows installgfortran-12. It looks like you can getgfortran-12viabrew'sgcc@12Formulae. This is the easiest way forward but adds code that doesn't really need to exist and could further complicate things in the future.
|
A quick search and it looks like only 2
|
Fixes a bug in the actual water vapor partial pressure calculation caused by an uninitialized variable and drop some dead code. Reviewers are recommended to review each commit in isolation as i've split things up to make your life easier.
I one question about the value we should use for uninitialized
saturation_water_vapor_partial_pressure_Pavariable in the actual water vapor partial pressure calculation that i've marked with a comment in the PR.Removals