-
Notifications
You must be signed in to change notification settings - Fork 568
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
Debug mode crash in w3src4md.F90 #1356
Comments
Update: I tried: But then I fail later in the run because now I'm going 1 over the upper bound:
|
I my opinion the issue is more when SATINDICES is computed. It should never be set at 0. @ardhuin what do you think about this issue ? |
@mickaelaccensi - I appear to be getting around this issue by creating new mod_defs which have non-zero SATINDICES That being said, based on looking at the code and some comments here, I'm wondering if we should change this line: https://github.com/NOAA-EMC/WW3/blob/develop/model/src/w3gdatmd.F90#L2098
Thoughts? |
Describe the bug
When running one of our coupled model test cases, with PR #1343 which is basically adding commit 3952826 to the dev/ufs-weather-model branch.
I get the following error:
forrtl: severe (408): fort: (3): Subscript #1 of the array A has value 0 which is less than the lower bound of 1
Line of code this is in (for the develop branch) is https://github.com/NOAA-EMC/WW3/blob/develop/model/src/w3src4md.F90#L2277 in the W3SDS4 subroutine :
BTH(IS)=DOT_PRODUCT(SATWEIGHTS(:,ITH), A(IS0+SATINDICES(:,ITH)) )**FACSAT
When I write out values before this crash
I get the following output:
I'm thinking we should add a ISO+1 here like is done in these lines of code: https://github.com/NOAA-EMC/WW3/blob/develop/model/src/w3src4md.F90#L2269C9-L2269C37:
Or something should be different in the SATINDICES(:,ITH) variable?
@mickaelaccensi @ardhuin - Any thoughts or comments?
To Reproduce
Unfortunately, I've only run into this error in the coupled model, so it's hard for others to reproduce but it's the ufs-waether-model test cpld_debug_pdlib_p8 with intel see PR #1343
Expected behavior
Should not crash in debug mode.
The text was updated successfully, but these errors were encountered: