Comments (10)
I agree with your analysis. Some time ago we changed rnit -> (rnit+1) and corrected (hopefully) the stochiometry of denitrification in ocprod, but these changes were never carried over into the sediment code. So it would be excellent to change this.
This should go into the beyond-CMIP6 branch (the sediment code was switched on in CMIP6, so these changes will break backwards bit-for-bit reproducibility).
from blom.
Hi @JorgSchwinger , ok, thanks for the swift response! Then I am going to prepare a branch and pull request (both based on beyond-CMIP6
) for this the next days.
from blom.
Hi @JorgSchwinger and @TomasTorsvik , I added sulf13,14
to the code to reflect the code changes done for 12C. However, now I stumbled over the stoichiometric values in the denitrification part of powach.F90
again, when looking at the NO3 consumption and N2 production. To my understanding, these values need to be changed as well:
For NO3: 98
-> rdnit1
(which is 121.6)
and for N2: 57
-> rdnit2
(which is 68.8 = 121.6/2+16/2, energy requirement and POM degradation)
Further, when calculating posol
, we need to divide by 2.*rdnit2
instead of 114
(=2*57
).
I'll add this and would merge it, if you agree.
from blom.
@JorgSchwinger and @TomasTorsvik , I am a bit puzzled about these lines -only present- in aerobic remin and denitrification
! is this correct? no corresponance in the lines above
powtra(i,j,k,ipowc13) = powtra(i,j,k,ipowc13) + poso13*umfa
powtra(i,j,k,ipowc14) = powtra(i,j,k,ipowc14) + poso14*umfa
To my understanding, the powtra
are updated twice due to these lines, since in l. 543-550, part Calculate updated degradation rate from updated undersaturation
, the 13,14C are again updated via the aerobic13,14
and anaerobic13,14
fields. I would therefore suggest to delete these lines for aerobic remin and denitrification.
from blom.
@JorgSchwinger and @TomasTorsvik , in general, I feel it would be good to merge master
into the beyond-CMIP6
branch either before (then I will handle merge conflicts) or directly after (then somebody else or me handles the merge conflicts) due to the recent sediment porosity implementations in master
. I think that after these changes, the isotope code should be up-to-date in the sediment.
from blom.
in general, I feel it would be good to merge
master
into thebeyond-CMIP6
branch either before (then I will handle merge conflicts) or directly after (then somebody else or me handles the merge conflicts) due to the recent sediment porosity implementations inmaster
.
I agree with this. I tend to think that it is better to merge master
to beyond-CMIP6
before merging in a new code change. This way you can resolve potential conflicts between master
and the old beyond-CMIP6
in a separate step (hopefully there should not be any), before creating a new beyond-CMIP6
. If you do it the other way around, it may be more difficult to untangle if a conflict with master
is due to the old beyond-CMIP6
or the new code changes. It's a minor point, either way should work I guess.
from blom.
Thanks for taking care this, Jöran. The sediment isotope code was never really finished (the model has not been tested with C-isotopes and sediments switched on). So it is well possible that there are still errors (i.e. I would agree deleting the lines of code mentioned above).
Regarding the stochiometry, I did the update of the water-column part with help of Iris (Kriest), so I hope the water column part is correct. If the sediment is inconsistent with this, would be great to fix this (I can't really judge the details right now without diving deeper into the code - I trust your suggestions are correct).
from blom.
@JorgSchwinger and @TomasTorsvik , I made the code changes and would now be ready to merge with the beyond-CMIP6
branch. I just spoke to Tomas, who will merge master into the feature branch before I do the merge, since I know from a local test that it will result in merge conflicts.
from blom.
After merging the master into beyond-CMIP6
branch, I resolved any conflicts and the bug-fixing branch is ready to be merged into beyond-CMIP6
.
from blom.
Merged.
from blom.
Related Issues (20)
- Fix pnetcdf issues in recent iHAMOCC updates HOT 5
- Potential bug in `sedshi.F90` HOT 5
- Units of dust/clay in iHAMOCC output HOT 2
- iHAMOCC: convert to SI units (CGS -> MKS) HOT 3
- Fix `'` in ncout_hamocc.F90 needed
- Units in iHAMOCC restart file HOT 3
- MESON - Single column model setup/simulation for debugging purposes HOT 3
- BLOM density calculation CGS versus MKS at initialization
- simplified output choices for BLOM HOT 2
- BLOM is not compiling in DEBUG mode HOT 4
- default PE layout for compset NOINYOC at T62_tn14 hangs on betzy HOT 9
- cannot run ERP test with BLOM HOT 5
- DEBUG compile option fails on Betzy due to iHAMOCC error HOT 2
- default `flux_albav` value TRUE/FALSE? HOT 8
- add ability to creation new partitions to BLOM HOT 1
- 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
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.