-
Notifications
You must be signed in to change notification settings - Fork 4
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
Variable 'jcap' uninitialized in utils/nemsio_read #42
Comments
Can we get a test to demonstrate this? |
A quick |
Running a test is very straightforward. All you need is a nemsio file. On Hera, I use nemsio files in the chgres_cube regression tests:
To run the utility, do |
Check the nemsio_read.f90 in the ./utils directory. |
When I say "test" I always mean automated test. Please automate a test for this bug before submitting a fix. Put the nemsio file on the ftp site and fetch it for the test. Write a shell script to run the test and have it launch with make test. Ask for help for any part you need help with... |
Intel must set uninitialized variables to '0' by default. |
Yep, that's an uninitialized variable. Compiling the libraries |
A better test file is: /scratch1/NCEPDEV/da/George.Gayno/noscrub/chgres_tutorial/nemsio/gfnanl.gdas.2017071700 It is from an older version of the spectral GFS and has a more complete header. |
Bumping this to the next release... |
NCO opened a BugZilla report about the
nemsio_read
utility. Variablejcap
is declared but never defined. Then it is printed to standard output at line 76. I suspect the utility author meant to returnjcap
from the call tonemsio_getfilehead
at line 74.http://www2.spa.ncep.noaa.gov/bugzilla/show_bug.cgi?id=1002
The text was updated successfully, but these errors were encountered: