-
Notifications
You must be signed in to change notification settings - Fork 6
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
Floating-point divide by zero exception in ssnow%smp_hys
computation
#396
Comments
@rkutteh @ccarouge FYI this issue looks like it is related to the GW work. Currently all CABLE/src/offline/cable_parameters.F90 Lines 3563 to 3566 in ca4c13e
Note: For the next GW changes, are there plans to remove the problematic code, i.e: CABLE/src/offline/cable_parameters.F90 Lines 2296 to 2312 in ca4c13e
or ensure all |
@SeanBryan51 @ccarouge As Claire already knows, I have fixed all these bugs in my GW branch that is now in the process of making its way into the trunk. My own view is to wait a bit until this process is finished (this month I think) so as to avoid reinventing the wheel. Just for the record, I had compiled my GW branch with "check all" and fixed every bug it flagged. |
@rkutteh
Happy to share more details if you are interested |
Hacking a temporary fix for #395 and running CABLE-MPI offline (
main
branch - commit 95b9b5e) using the crujra_accessN96_1h configuration results in the following divide by zero exception:The exception occurs on this line of the code:
CABLE/src/offline/cable_parameters.F90
Line 2320 in 95b9b5e
It looks like
ssnow%ssat_hys(i,k)
andssnow%watr_hys(i,k)
are both uninitialised and contain the same garbage value, causing the subtraction of the two values to result in divide by zero.Steps to reproduce (Gadi)
Apply the following patch to fix the error described in #395 (WARNING - this patch is untested and should not be used for work other than reproducing this issue):
The steps to reproduce the error are the same as that described in #395.
The text was updated successfully, but these errors were encountered: