Comments (5)
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 beyone-CMIP6
branch at some point (or the master
, if is has been merged).
from blom.
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 sedshi.F90
code has not been changed for a long time, except l. 143 that was included in PR #189.
As it happens, k
should take the value ks
in this case, since the previous loop terminates at ks-1
, but I don't think there is any good reason to rely on this implied behavior.
See discussion in https://stackoverflow.com/questions/62229922/value-of-index-variable-after-loop-exit-in-fortran
and example:
program main
implicit none
integer :: i, n
n = 10
do i = 1, n - 1
print *, "inside: ", i
enddo
print *, "after exit: ", i !! guaranteed to be n?
end
from blom.
Also, it would be a good idea to update beyond-CMIP6
from master before including the fix.
from blom.
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).
from blom.
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
beyone-CMIP6
branch at some point (or themaster
, if is has been merged).
Seem like a good plan to me :)
from blom.
Related Issues (20)
- CI does not work with ecosys enabled HOT 1
- NorESM is no longer bfb identical after merging PR-280 HOT 10
- Merging strategy for new release versions (CMIP6-compatible and INES interim release) HOT 1
- Reorganize the model parameters into mo_param_bgc to enable usage of protected statement
- Move sediment parameters into mo_param_bgc
- Continuous regression testing with NorESM 2.0.6 HOT 7
- Draft v1.4.0 release HOT 4
- Release notes for v1.5.0 HOT 1
- science support attributes for compsets in BLOM for v1.5.0 HOT 13
- CI on gitHub: build with intel compiler not working
- Suggestion to re-structure config_pes.xml file
- Namelist `/bgcparams/` writing via `buildnml` HOT 12
- Units mismatch/issue for riverine DOC input? - potential bug HOT 2
- iHAMOCC towards the NorESM2.3 release HOT 1
- Transition from "cgs" to "mks" as default for NorESM2.3? HOT 6
- Plans for BLOM/iHAMOCC for NorESM2.5 HOT 1
- Changing rhsctp to .true. in namelist_definition_blom.xml causes model to crash HOT 4
- Modifications necesarry after including the M4AGO scheme? HOT 9
- How to run BLOM in tagged version v1.6.0 close/identical to the CMIP6 circulation field?
- Initialization of preformed tracers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blom.