-
Notifications
You must be signed in to change notification settings - Fork 544
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
[ww3_multi] Negative UNIT number for ASCII output #1116
Comments
I think it perhaps needs an extra entry like this in Lines 5448 to 5456 in 4cd995d
|
Interesting. That looks promising. |
OK. I think I have a fix for this. |
Describe the bug
When compiling ww3_multi with the ASCII switch, the unit number for ASCII gridded output (w3iogo) is being set to
-1
To Reproduce
Run
mww3_test_09/MPI_ASCII
regtest; model core dumps trying to open output file.Issue is likely compiler dependent.
I am getting the issue when using the GNU GFortran compiler and a bit of debug PRINT statements shows that the unit number for
NDSOA
is -1 for ASCII output here, which is invalid:WW3/model/src/w3iogomd.F90
Lines 2621 to 2624 in 4cd995d
I am not sure how the unit numbers are set in WW3_MULTI, I will investigate.
Expected behavior
Core dump.
Error message I get is:
The text was updated successfully, but these errors were encountered: