-
Notifications
You must be signed in to change notification settings - Fork 25
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
Potential bug in sedshi.F90
#210
Comments
Hi @jmaerz , I agree that this looks suspicious. Looking at the code history: https://github.com/NorESMhub/BLOM/blame/master/hamocc/sedshi.F90 most of the As it happens, See discussion in https://stackoverflow.com/questions/62229922/value-of-index-variable-after-loop-exit-in-fortran
|
Also, it would be a good idea to update |
Hi @jmaerz and @TomasTorsvik It looks like k=ks at this point of the code, right? In this case, I don't think this classifies as a bug (since it relies on behavior that is part of the Fortran standard). But it is definitely not nice and I agree k should be changed to ks here. There should be no effect on the results (hopefully). |
Hi @JorgSchwinger an @TomasTorsvik , ok, yes, I see what you mean. Being explicit about it wouldn't harm, though. I guess, in this case, I will add the change simply to my nitrogen cycle branch which will enter the |
Seem like a good plan to me :) |
Hi @JorgSchwinger and @TomasTorsvik , while implementing output for burial fluxes, I stumbled over the potential issue described in #27 (not urgent), but in addition in
sedshi.F90
: could it be that the downward shifting into the burial layer is not correct? To my understanding, the indexk
should be replaced byks
(loop in l. 135-148 in currentmaster
) - note the closure ofk
-loop before:should read:
If so, I would implement the bug-fix it in a branch for
beyond-CMIP6
(maybe it would be good to update that branch with the current master before).The text was updated successfully, but these errors were encountered: