-
Notifications
You must be signed in to change notification settings - Fork 312
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
Minor bug in creation of soil color in mksurfdata_map: points can be given the default soil color, when they should have a real color #4
Comments
Add a unit test that exposes the bug in ESCOMP#4 - in some cases, points are given soil color 0 when they should be given a real color. Also change code to fix this bug. (The new unit test fails without the changes in mksoilUtilsMod.F90.) (Addresses ESCOMP#4, but fully fixing that issue will require recreating all surface datasets.)
I have verified that this is, indeed, a bug by isolating the relevant logic and wrapping it in a unit test (74b69e3). However, this has absolutely no impact on a 1-degree surface dataset ( |
Added disturbance index names and partial addition of logging NL entry
Update to 10/10/2017 release
Bring in sci.1.3.1_api.2.0.0 from ngeet/fates-release
syntax refactors - merge corrections
Sla and nitrogen profiles are now scaled by leaf area alone. SAI is based on target leaf area.
…to_merge code-cleaning and store-to-repro during disturbance inducing mortality
fire mortality -- restart diagnostics
merge with master
small fixes related to degredation and CWD/disturbance fluxes
updates to python scripts to work with new parameter files
Backup the PPE branch to ctsm5.1.dev030, but working on Derecho
Addition of new data model testlists Adds new aux_cdeps tests lists to every CDEPS component Fixes issues related to the creation of regional meshes and single column configurations Fixes the inline interface to be used by prognostic components
Merge feature/hafs_couplehycom_cdeps back to support/HAFS
fix issue with status
…lio (PR ESCOMP#4) Squashed commit of the ff: [3f64c755] Refactored utils.py [101fda55] Updated new script name in setup.cfg [984010ec] Added DATM namelist generator scripts [15f69442] Added modelio namelist generator scripts [ab4bdfa3] Added MOSART namelist generator [80f5b711] Namelist generators for drv_in and drv_flds_in [6711a086] Moved drv_flds_in functions from gen_lnd_in.py to gen_drv_flds_in.py [c672c768] Moved drv_in params from gen_lnd_in.py to gen_drv_in.py [443d383b] Bump script version to 0.2
…art, and modelio (PR ESCOMP#4) 'a0185014c1c2a75ea80b8af3d921a452bfdfb168' into eclm
merge up to ctsm-5.2.005
Bill Sacks < sacks@ucar.edu > - 2012-01-29 20:29:57 -0700
Bugzilla Id: 1457
Bugzilla CC: mvertens@ucar.edu, rfisher@ucar.edu,
I think there is a bug in mksoilcol in module mksoilMod in mksurfdata_map... I haven't done any testing to confirm this, but the logic looks wrong to me:
The relevant code is copied below.
It looks like the intention is that, in the first do loop, wst(0,no) should be 0 if there is ever a non-zero color in this output cell. However, it seems there is an unintentional order dependence here: Consider the following two cases, showing the colors in input grid cells corresponding to a single output grid cell; assume for simplicity that all weights are 0.25:
(1) 0, 0, 0, 1
(2) 1, 0, 0, 0
In case (1), wst(0,no) will be correctly set to 0.0 when the 1 value is read. This will result in soil_color_o = 1.
In case (2), wst(0,no) will be set to 0.0 at first, but upon reading the three 0 values, wst(0,no) will become 0.75. This will result in soil_color_o = 0, which will later be changed to either 4 or 15.
So, if I'm correct in my interpretation of this algorithm, soil_color_o sometimes depends on the order in which values appear in the source grid cells!
The text was updated successfully, but these errors were encountered: