-
Notifications
You must be signed in to change notification settings - Fork 542
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
Un-initialised variables #1017
Comments
@ukmo-ccbunney Thank you! Can I ask how you are finding these (and therefore how we can all help you find more?) |
@ukmo-ccbunney thanks, will make a pull request this weekend. |
I'm compiling selected regtests with as many compiler warning flags enabled as possible. I am not 100% sure the compiler catches everything, so I am investigating whether I can run with a tool like |
@MatthewMasarik-NOAA has run valgrind on WW3 for a few tests, maybe he has some insights on that. |
I've run it before on serial jobs, but not on an MPI job (I assume that the PDLIB tests need to be MPI?) |
@ukmo-ccbunney I have used valgrind on WW3, but also in serial. |
Out of interest, what options do you use when running valgrind? Currently, I am doing:
|
I could clarify that i have run valgrind on WW3 on MPI jobs, but I have not done any steps like using the |
Hi @aronroland , |
Hi Chris, this is fine, I will merge it into init_bugs2, and I will also work out the comment on the triads not being initialized correctly. Let me also thank for these findings! Cheers Aron |
This issue will be used to log any un-initialised variables found in the code.
I will update it as/when I find any.
ww3_profsmd_pdlib.f90:
RD10
andRD20
. Used on line 6573,6574. Declared on line 6414.WW3/model/src/w3profsmd_pdlib.F90
Lines 6573 to 6574 in 5cc3a01
fhndl
: Used on line 3070 in a write statement. Unlikely to be cause any B4B reproduciblity errors, but could cause a crash if unit number is way out of range. I'm don't believe this subroutine is actually called (looks like debugging).WW3/model/src/w3profsmd_pdlib.F90
Line 3073 in 5cc3a01
ww3_ounf.F90
FLGFC
is unitilialised if not running with namelist input:WW3/model/src/ww3_ounf.F90
Lines 245 to 246 in 5cc3a01
Needs initialising here with other variables not supported via .inp files:
WW3/model/src/ww3_ounf.F90
Lines 414 to 419 in 5cc3a01
The text was updated successfully, but these errors were encountered: