Skip to content
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

Merge extended nitrogen cycle, M4AGO scheme and preformed Si tracer into master #269

Merged
merged 445 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
445 commits
Select commit Hold shift + click to select a range
f60e840
Lon-lat variable sediment porosity (#189)
jmaerz Sep 15, 2022
0f5807b
merge with master to introduce variable sediment porosity
jmaerz Sep 15, 2022
7d3a18b
merge with extNcycle to bring in the variable porosity as merged from…
jmaerz Sep 15, 2022
ed82068
Added wave forcing fields.
matsbn Sep 15, 2022
0e16e61
Renamed folder for MCT driver.
matsbn Sep 15, 2022
8a7223a
Moved MCT specific file from drivers/cpl_share/ to drivers/mct/.
matsbn Sep 15, 2022
5286355
Rename drivers/mct/mod_swtfrz.F to drivers/mct/mod_swtfrz.F90.
matsbn Sep 15, 2022
0003695
Rewrite to drivers/mct/mod_swtfrz.F90 to free format Fortran.
matsbn Sep 15, 2022
1d49746
Merging master into beyond-CMIP6 (#196)
jmaerz Sep 20, 2022
1a73849
Updated fn2o pathway split function for nitrification to mechanistic …
jmaerz Sep 20, 2022
1cd59ee
merged with extNcycle to pull in mechanistic description of fn2o path…
jmaerz Sep 20, 2022
3f4bca7
BUG fixes: sediment alkalinity and sediment C14 (#194)
jmaerz Sep 20, 2022
0c7081e
merge with beyond-CMIP6 to pull in alkalinity and C-isotope fixes in …
jmaerz Sep 20, 2022
bbea3bf
oxygen limitation always with M4AGO and in extended nitrogen cycle
jmaerz Sep 20, 2022
6f32e4d
merge with extNcycle to pull in sediment alkalinity and C-isotope bug…
jmaerz Sep 20, 2022
7b1e28f
Including sediment parameters
jmaerz Sep 21, 2022
e0dd73c
Fix o2lim usage when NOT running extNcycle, but using M4AGO
jmaerz Sep 21, 2022
2be88ab
Setup of DIC and alkalinity changes tracking for sediment extNcycle
jmaerz Sep 21, 2022
5db1863
Incorporated pore water N species to inventory calculations
jmaerz Sep 21, 2022
999d66d
Introduced NO3 to NO2 denitrification in sediment
jmaerz Sep 22, 2022
9f89f07
Introduced nitrification in sediment
jmaerz Sep 22, 2022
37f6617
Included anammox in sediment
jmaerz Sep 22, 2022
a92b409
Added DNRA und denitrification NO2 -> N2O -> N2
jmaerz Sep 22, 2022
36cb67b
make water column tuning parameters only available to init of sediment
jmaerz Sep 22, 2022
161db4f
fix bug in NO3 denitrification
jmaerz Sep 22, 2022
fee659e
Included ammonification to NH4
jmaerz Sep 22, 2022
9c14392
Implemented OUTPUT for sediment
jmaerz Sep 23, 2022
57a290c
T- and O2-dependent ammonification in sediment
jmaerz Sep 26, 2022
467bab8
Merge remote-tracking branch 'upstream/master' into feature-nuopc
matsbn Sep 27, 2022
58252b5
Remove redundant definition of kOBL.
TomasTorsvik Aug 5, 2022
855a8f8
Redefine kOBL, cast as integer
TomasTorsvik Sep 27, 2022
7c6f22c
Fixing variable sediment porosity - field initialization in case of `…
jmaerz Sep 27, 2022
2c6706f
merge with master to pull in voriabla porosity fix and parameter init…
jmaerz Sep 27, 2022
b70ffd9
merge with extNcycle to pull in fix for variable porosity and initial…
jmaerz Sep 27, 2022
ddd05e0
Outcommented minlim checks to test, if they are needed
jmaerz Sep 27, 2022
cfbe359
Introduce a section for tweaking parameters
jmaerz Sep 27, 2022
5a65d8c
fix buildnml wrt sediment - water column pore water fluxes
jmaerz Sep 27, 2022
9640065
FIX reading the variable porosity file
jmaerz Sep 28, 2022
18d560b
This is the first commit of MKS units. All variables in the subroutin…
milicak Oct 3, 2022
b833500
Hamocc hybrid coord2 (#179)
TomasTorsvik Oct 3, 2022
2887f15
Merge pull request #199 from matsbn/feature-nuopc
matsbn Oct 3, 2022
458576c
merge with master to pull in nuopc driver and iHAMOCC prep for hybrid…
jmaerz Oct 7, 2022
44d4a36
merge with extNcycle to pull in nuopc and hybrid coord iHAMOCC
jmaerz Oct 7, 2022
07e3ae3
BLOM CIME cpp updates to run in NorESM
milicak Oct 10, 2022
6447886
bug fixes for the CGS MKS conversion
milicak Oct 10, 2022
31e8577
cesm thermal forcing bug fixes for reproducibility
milicak Oct 10, 2022
fc2f09b
move from Goreau O2-half saturation constant to more recent measured …
jmaerz Oct 14, 2022
c517ce2
Merge in extended nitrogen cycle sediment feature branch
jmaerz Oct 14, 2022
e3950e6
Fix new O2-half saturation constant dependency
jmaerz Oct 14, 2022
c927e3c
FIX 2D srf fields output extNcycle
jmaerz Oct 16, 2022
edef04f
BLOM MKS update to export winds into the CESM using proper units.
milicak Oct 17, 2022
e64bc49
input values in ocn_in case is updated for mks setup
milicak Oct 17, 2022
f94265c
default cgsmks value changed
milicak Oct 21, 2022
ccc1d74
Initialize some variables in the k-epsilon model.
matsbn Nov 4, 2022
bd03f1d
Fix porosity read (#201)
jmaerz Nov 9, 2022
3f81ba9
Output for pN2O moist air; prepared for pNH3 output
jmaerz Nov 18, 2022
8a79ed1
Correct unit of diagnostic variable dp_trc.
matsbn Nov 20, 2022
b51f8de
Made conservation and checksum diagnostics selectable by namelist opt…
matsbn Nov 21, 2022
04e0eeb
Merge pull request #205 from matsbn/feature-r13fixes
matsbn Nov 21, 2022
af660e2
pCO2, Piston velocity and solubility output (#202)
jmaerz Nov 22, 2022
adab448
Bugfix pnetcdf (#208)
TomasTorsvik Nov 25, 2022
38ad0ea
merged with master at new release state
jmaerz Nov 28, 2022
5ca2bab
Output for burial fluxes
jmaerz Nov 29, 2022
55ccf0e
Revert accidentially changed name
jmaerz Nov 30, 2022
9a6b1fd
Implemented pNH3 in carchm.F90
jmaerz Nov 30, 2022
0be3f15
Move from k to ks to be explicit in sedshi.F90 for burial
jmaerz Nov 30, 2022
0ff4d4b
Rename pnh3m to pnh3
jmaerz Dec 1, 2022
201bb3c
fixed units and renamed calcium burial to CaCO3 burial (#212)
jmaerz Dec 2, 2022
28beab5
Merged in master for clay unit fix
jmaerz Dec 2, 2022
1742ed6
Lon-lat variable sediment porosity (#189)
jmaerz Sep 15, 2022
ccbc18e
Remove redundant definition of kOBL.
TomasTorsvik Aug 5, 2022
f17e225
Redefine kOBL, cast as integer
TomasTorsvik Sep 27, 2022
234097f
Fixing variable sediment porosity - field initialization in case of `…
jmaerz Sep 27, 2022
a981e56
Hamocc hybrid coord2 (#179)
TomasTorsvik Oct 3, 2022
f9b0186
Added initial support for NUOPC driver.
matsbn Sep 14, 2022
014eec6
Added wave forcing fields.
matsbn Sep 15, 2022
3e639aa
Renamed folder for MCT driver.
matsbn Sep 15, 2022
ed18d3a
Moved MCT specific file from drivers/cpl_share/ to drivers/mct/.
matsbn Sep 15, 2022
d83fbae
Rename drivers/mct/mod_swtfrz.F to drivers/mct/mod_swtfrz.F90.
matsbn Sep 15, 2022
d0cdcd8
Rewrite to drivers/mct/mod_swtfrz.F90 to free format Fortran.
matsbn Sep 15, 2022
42926fa
Fix porosity read (#201)
jmaerz Nov 9, 2022
78e8574
Correct unit of diagnostic variable dp_trc.
matsbn Nov 20, 2022
233c39f
Made conservation and checksum diagnostics selectable by namelist opt…
matsbn Nov 21, 2022
ca62d33
pCO2, Piston velocity and solubility output (#202)
jmaerz Nov 22, 2022
0f791c2
Bugfix pnetcdf (#208)
TomasTorsvik Nov 25, 2022
64da111
fixed units and renamed calcium burial to CaCO3 burial (#212)
jmaerz Dec 2, 2022
55b9aa0
Fix mistake from merge conflict in hamocc/powach.F90
TomasTorsvik Dec 6, 2022
09290fc
Merge pull request #215 from TomasTorsvik/merge_from_master
TomasTorsvik Dec 6, 2022
fb5b007
merging with master-updated beyond-CMIP6 branch
jmaerz Dec 6, 2022
3ed3cb1
fix lost jsrfpn2o
jmaerz Dec 6, 2022
41beb70
add nitrite to netcdf-inventory output
jmaerz Dec 6, 2022
2b2524d
minor reordering
jmaerz Dec 6, 2022
9a57ef7
- Made the "fuk95" configuration work with MKS units.
matsbn Dec 8, 2022
34a99a1
Correct unit conversion of mixed layer depth to pressure.
matsbn Dec 8, 2022
e7538af
Updated NorESM coupling scripts for the use of MKS units.
matsbn Dec 9, 2022
1b2faf1
Merge pull request #217 from matsbn/SI_units
milicak Dec 9, 2022
0c1f3d3
Merge remote-tracking branch 'upstream/master' into SI_units
matsbn Dec 9, 2022
641b42f
Fixed check of unit system when building as NorESM component.
matsbn Dec 10, 2022
f69926d
Merge pull request #218 from matsbn/SI_units
matsbn Dec 12, 2022
0102954
Corrected pressure interface calculation.
matsbn Dec 23, 2022
a6ea145
Added functionality for vcoord_type = cntiso_hybrid to allow for a gr…
matsbn Dec 23, 2022
d4738df
Added submesoscale eddy-induced transport parameterization for hybrid…
matsbn Dec 31, 2022
2310ec3
Added separate non-local terms for vertical distribution of surface t…
matsbn Jan 2, 2023
8644da2
Latitude dependency of background diapycnal mixing is now available f…
matsbn Jan 2, 2023
9067ec7
Set MatchTechnique = ParabolicNonLocal as default for CVMix.
matsbn Jan 2, 2023
81a96ca
Updated gcc version used in CI.
matsbn Jan 3, 2023
09ced99
Install netcdf-fortran instead of netcdf on macOS for CI.
matsbn Jan 3, 2023
65e6704
Add option for surface pH output (#221)
JorgSchwinger Jan 6, 2023
4962fdb
Remove unused parameters in wrt* subroutine calls in ncout_hamocc.F90
JorgSchwinger Jan 9, 2023
076f8ff
Add linear ramping-up scenario for ocean alkalinisation
TimotheeBrgs Jan 23, 2023
9c31d4a
Import get_bgc_namelist only in subroutine where it is needed. (#225)
TomasTorsvik Jan 25, 2023
e5eb631
Merge master into feature-hamocc_beyond-CMIP6 branch (#226)
jmaerz Jan 25, 2023
3e0fc3f
merge with master
jmaerz Jan 26, 2023
25357e1
merged with feature-hamocc_beyond-CMIP6 branch - still requires adjus…
jmaerz Jan 26, 2023
fbb4d62
adjusted burialflx,M4AGO and extNcycle output formatting in ncout_ham…
jmaerz Jan 26, 2023
165fda2
Merge pull request #219 from NorESMhub/SI_units
milicak Jan 27, 2023
26e65d6
fix missing ' (#229)
jmaerz Jan 27, 2023
79c9bf5
fix missing ' (#228)
jmaerz Jan 27, 2023
c6964a1
Read parameters for alkalinization scenarios from namelist file
TimotheeBrgs Jan 30, 2023
ba3d3d4
Cleaning
TimotheeBrgs Jan 30, 2023
63e2d86
Rename shell namelist variables
TimotheeBrgs Jan 30, 2023
545cf10
Rename shell namelist variables 2
TimotheeBrgs Jan 30, 2023
c0418d2
Proper integer definition for current_day
TimotheeBrgs Jan 30, 2023
7c8ef67
Merge pull request #224 from TimotheeBrgs/OA_rampscen
TomasTorsvik Jan 31, 2023
a828bc2
Fix buildnml
TimotheeBrgs Jan 31, 2023
9c4f81d
Merge pull request #234 from TimotheeBrgs/fix_buildnml
TomasTorsvik Jan 31, 2023
b69d56f
write out pN2Om in natm
jmaerz Feb 6, 2023
c0ae6c2
Merge latest master into feature-hamocc_beyond-CMIP6 branch (#232)
jmaerz Feb 9, 2023
6858dc0
merge master into feature-hamocc_beyond-CMIP6 locally to align commit…
jmaerz Feb 9, 2023
d776893
Merge pull request #237 from jmaerz/feature-hamocc_beyond-CMIP6
jmaerz Feb 9, 2023
33be6cf
merge with feature-hamocc_beyond-CMIP6
jmaerz Feb 9, 2023
78115e3
fix prho unit-issue
jmaerz Feb 13, 2023
c22ca7e
change initial N2O concentration to lower value to avoid too long equ…
jmaerz Feb 13, 2023
40aa90b
Hamocc fix restart file units (#239)
jmaerz Feb 14, 2023
c6b5bf3
fix string count number (#242)
jmaerz Feb 15, 2023
57b49c4
Merge pull request #235 from matsbn/feature-hybrid_enhancements
matsbn Feb 17, 2023
3e8500d
fix sediment restart writing for extNcycle pore water tracers
jmaerz Feb 28, 2023
52ac3a5
fix sediment restart reading for extNcycle pore water tracers
jmaerz Feb 28, 2023
3c546c6
add ability to read input file for ocean alkalinization (#241)
TimotheeBrgs Mar 6, 2023
0bfc1cc
add output for N-deposition and ocean alkalinization fluxes (#247)
JorgSchwinger Mar 16, 2023
b28d2da
Squash remove M4AGO core
jmaerz Mar 17, 2023
5bd6599
Produce common merge point between extNcycle and extNcoupling
jmaerz Mar 20, 2023
c54de5f
Introducing coupling fields in BLOM and iHAMOCC
jmaerz Mar 20, 2023
6cc3d38
Read and write fluxes in restart files
jmaerz Mar 20, 2023
7be3e1d
Introduce atmospheric N2O and NH3 cesm fields for coupling
jmaerz Mar 20, 2023
0fbba92
Write atmospheric X_da to restart file, fix missing flx nc-init for r…
jmaerz Mar 20, 2023
ac6e031
Introduce indices and fields of N2O and NH3 for the mct coupler
jmaerz Mar 21, 2023
35f52e6
Adjusted mol->kg conversion factor
jmaerz Mar 22, 2023
4435333
add compsets for coupled N2O and NH3 fluxes
jmaerz Mar 22, 2023
584c665
Fix powach
jmaerz Mar 23, 2023
ed4a9ef
Fix powach
jmaerz Mar 23, 2023
b2f5014
Express atmospheric N2O concentration in ppt (not in mol/mol mixing r…
jmaerz Mar 24, 2023
c42111c
Add output for atmospheric NH3 and N2O for coupler check
jmaerz Mar 27, 2023
4dc5ac6
Change output frequency for fluxes of NH3 and N2O to monthly mean
jmaerz Mar 27, 2023
62f67c7
Fix restart file reading for extended nitrogen cycle pore water tracers
jmaerz Mar 27, 2023
0a27101
Preparing fields for online noy and nhx deposition
jmaerz Mar 27, 2023
6a0b4b1
Applying atmospherically provided N-deposition fluxes
jmaerz Mar 28, 2023
0e8ab8f
Add switch for atm N-dep to namlelist and set it dependent on compset
jmaerz Mar 28, 2023
bf5a830
fix missing comma
jmaerz Mar 29, 2023
15c7c4b
merge with master
jmaerz Mar 29, 2023
027c596
fix missing $
jmaerz Mar 29, 2023
33d4831
fix missing &
jmaerz Mar 29, 2023
f8e0c02
return from ini_read_ndep in case of interactive N-deposition
jmaerz Mar 29, 2023
b285dc9
formatting changes
jmaerz Mar 29, 2023
d15a001
merge with master and fixed conflicts
jmaerz Mar 29, 2023
6296a23
fix buildnml
jmaerz Mar 29, 2023
683a614
add NHx deposition output
jmaerz Mar 30, 2023
33e5a3f
fix placement of ndepnhx
jmaerz Mar 30, 2023
3bf5eaa
add POM Q10 and Tref to M4AGO - sediment makes use of it
jmaerz Apr 17, 2023
a66815f
Merge with extNcoupling - including some chnages in master
jmaerz Jul 17, 2023
849e176
merge with feature-hamocc_beyond-CMIP6
jmaerz Jul 17, 2023
7235cd4
Fix merging issue
jmaerz Jul 17, 2023
5faf755
Fix applying climatological N-deposition
jmaerz Jul 18, 2023
204eae5
Introduce switch to enable running bluefix/cyanos only in the euphoti…
jmaerz Jul 18, 2023
a952f62
merge with feature-hamocc_beyond-CMIP6
jmaerz Aug 31, 2023
4076786
add relevant information of output variables
jmaerz Aug 31, 2023
04601e6
fix missing "" in buldnml
jmaerz Aug 31, 2023
a7cc835
Re-introduce M4AGO parameter and N-cycle parameter initialization
jmaerz Aug 31, 2023
1168faa
fix utf-8 from copying
jmaerz Aug 31, 2023
6c13425
only renaming file
jmaerz Sep 7, 2023
480ad49
adjust use statements to renamed file/module
jmaerz Sep 7, 2023
d224e79
rename subroutine
jmaerz Sep 7, 2023
8a99417
Make N-cyle water column parameters available for nml
jmaerz Sep 7, 2023
f9fb3a5
Make N-cyle sediment parameters available for nml
jmaerz Sep 7, 2023
fa12ebb
fix line wrap...
jmaerz Sep 7, 2023
66ad720
add NHx deposition read for input file
jmaerz Sep 18, 2023
8cec0d5
Replace hard coded index numbers by parameters
jmaerz Sep 18, 2023
21b9b7d
Introduce parameter for CAM mol weight of nitrogen
jmaerz Sep 18, 2023
97994a3
Update pressure calculation in M4AGO
jmaerz Sep 19, 2023
733e501
Merge with OMP fixed & fixed burail wrapping beyond-CMIP6
jmaerz Sep 26, 2023
8370086
Make atmospheric NH3 and N2O a namelist parameter
jmaerz Sep 27, 2023
f6ca376
Add switch for bluefix to buildnml
jmaerz Sep 28, 2023
71bf2ec
Add switch for N2O and NH3 air-sea gas exchange coupling
jmaerz Oct 4, 2023
b2b46fe
Change default write format for N2O_LYR
jmaerz Oct 5, 2023
702a98f
Enable switching on and off N-cycle coupling of N2O and NH3 fluxes in…
jmaerz Oct 16, 2023
3d76f75
Introduce preformed silicate tracer
jmaerz Oct 23, 2023
1fce304
Enable or disable writing of M4AGO output via M4AGO switch
jmaerz Oct 23, 2023
ab490a3
merge with feature-hamocc_beyond-CMIP6 branch - further fixes/changes…
jmaerz Jan 19, 2024
fa96bf5
making things compilable again - M4AGO and N-cycle not yet running again
jmaerz Jan 19, 2024
a1ef6a7
replace extNcycle preprocessor flags - still fixes to be done
jmaerz Jan 19, 2024
343c8c5
move initialization of M4AGO-params out of mo_param_bgc & mv remin/di…
jmaerz Jan 22, 2024
09bba8f
small fix
jmaerz Jan 22, 2024
130fbe9
move water column extended nitrogen cycle parameters to mo_param_bgc
jmaerz Jan 22, 2024
59ad3b5
move extended nitrogen cycle sediment parameters to mo_param_bgc
jmaerz Jan 22, 2024
6707736
Add extended nitrogen cycle & M4AGO switches + output to cime configu…
jmaerz Jan 23, 2024
739cfd5
tidy up a bit
jmaerz Jan 23, 2024
8ea4785
fix sediment-water interface
jmaerz Jan 23, 2024
5d464cc
fix sediment-water interface
jmaerz Jan 23, 2024
dab06bd
Merge with feature-hamocc_beyond-CMIP6
jmaerz Jan 23, 2024
2caf8ee
cleaning, indenting, small letters - trying to comply to new coding s…
jmaerz Jan 24, 2024
e63a86f
cleaning, indenting, small letters - trying to comply to new coding s…
jmaerz Jan 24, 2024
908d1e1
cleaning, indenting, small letters - trying to comply to new coding s…
jmaerz Jan 24, 2024
c5f38b5
cleaning, indenting, small letters - trying to comply to new coding s…
jmaerz Jan 24, 2024
24b7ad6
minor changes - fix inventory write for extNcycle
jmaerz Jan 25, 2024
d4672fa
fix issues with DMS (partially introduced by merging, partially not c…
jmaerz Jan 25, 2024
834551b
remove double entry
jmaerz Jan 26, 2024
9bd1e47
Add xml-switches to buildnml
jmaerz Jan 26, 2024
d0d99a5
fix namelist def
jmaerz Jan 26, 2024
3d6184a
fix configuration for coupled simulations
jmaerz Jan 29, 2024
3da9dd6
minor changes
jmaerz Jan 29, 2024
fb8dbc8
Merge with master
jmaerz Jan 31, 2024
c51008b
add extended nitrogen cycle tuning parameters to xml
jmaerz Jan 31, 2024
552be9f
add barely used tuning parameter for extended nitrogen cycle to xml
jmaerz Jan 31, 2024
1339415
merge with master to enable writing of parameters to nc-file
jmaerz Feb 12, 2024
247722b
add bgc-namelist parameters
jmaerz Feb 12, 2024
fb6ba42
add preformed silicate tracer to nc-inventory
jmaerz Feb 13, 2024
a9c39ec
Reorder writing of burial fluxes
jmaerz Feb 23, 2024
7e1f3ad
update default water column parameters for the N-cycle
jmaerz Feb 23, 2024
83ae05d
Keep sign of sedlo division in mo_sedshi - eases working with sedimen…
jmaerz Feb 26, 2024
0b14dac
add sediment model parameters to namelist
jmaerz Feb 27, 2024
d6f1ec5
fix spaces
jmaerz Mar 12, 2024
399118c
Merge with master; new opal dissolution rate in sediment, sed-spinup …
jmaerz Mar 20, 2024
d54b65d
Modularized M4AGO - now becoming a submodule
jmaerz May 28, 2024
c626093
add M4AGO submodule to cime path
jmaerz May 28, 2024
391b5c6
Merge M4AGOmodularized - M4AGO is now a submodule
jmaerz May 28, 2024
99e04e2
minor changes in M4AGO submodule
jmaerz May 28, 2024
964f022
merge with master - restart_XX.F still needs to be fixed
jmaerz May 28, 2024
c4273ac
re-introduce phy/restart_wt.F part
jmaerz May 28, 2024
e540d57
re-introduce phy/restart_rd.F part
jmaerz May 28, 2024
aea602d
Fix meson test system
jmaerz May 28, 2024
d653aad
Clean up comments and whitespaces
jmaerz May 29, 2024
0936b17
Change M4AGO switch: lm4ago -> use_M4AGO
jmaerz May 30, 2024
535f819
Indentation
jmaerz May 30, 2024
56f483f
adjust description for burial fluxes
jmaerz May 30, 2024
93d7473
Write amt_n2o always to 2D field
jmaerz May 30, 2024
2b20826
adjust description of output nml
jmaerz May 30, 2024
30b97a2
Clarify dependency of do_ndep_coupled on do_ndep
jmaerz May 30, 2024
50aab8c
Make dependency of do_ndep_coupled on do_ndep more explicit
jmaerz May 30, 2024
2386ea3
Restructure online atmosphere nitrogen deposition
jmaerz May 30, 2024
066da57
Switching cyanobacteria on only in the euphotic zone - breaks bfb wit…
jmaerz May 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "CVMix-src"]
path = pkgs/CVMix-src
url = git@github.com:CVMix/CVMix-src.git
[submodule "pkgs/M4AGO-sinking-scheme"]
path = pkgs/M4AGO-sinking-scheme
url = git@github.com:jmaerz/M4AGO-sinking-scheme
7 changes: 7 additions & 0 deletions Externals_BLOM.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ repo_url = https://github.com/CVMix/CVMix-src
local_path = pkgs/CVMix-src
required = True

[M4AGO]
tag = dev-1.0.0
protocol = git
repo_url = https://github.com/jmaerz/M4AGO-sinking-scheme
local_path = pkgs/M4AGO-sinking-scheme
required = True

[externals_description]
schema_version = 1.0.0
48 changes: 38 additions & 10 deletions cesm/mod_cesm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ module mod_cesm
use mod_forcing, only: trxday, srxday, swa, nsf, lip, sop, eva, rnf, rfi, &
fmltfz, sfl, ztx, mty, ustarw, slp, abswnd, &
lamult, lasl, ustokes, vstokes, atmco2, atmbrf, &
flxdms, flxbrf, use_stream_relaxation
flxdms, flxbrf, &
atmn2o,atmnh3,atmnhxdep,atmnoydep, &
use_stream_relaxation
use mod_ben02, only: initai, rdcsic, rdctsf, fnlzai
use mod_seaice, only: ficem
use mod_checksum, only: csdiag, chksummsk
Expand Down Expand Up @@ -81,7 +83,11 @@ module mod_cesm
atmco2_da, & ! Atmospheric CO2 concentration [ppm].
atmbrf_da, & ! Atmospheric bromoform concentration [ppt].
flxdms_da, & ! dms surface flux computed by mediator [kg m-2 s-1]
flxbrf_da ! brf surface flux computed by mediator [kg m-2 s-1]
flxbrf_da, & ! brf surface flux computed by mediator [kg m-2 s-1]
atmn2o_da, & ! Atmospheric nitrous oxide concentration [ppt].
atmnh3_da, & ! Atmopsheric ammonia concentration [ppt].
atmnhxdep_da, & ! Atmospheric nhx deposition field [kgN m-2 s-1].
atmnoydep_da ! Atmospheric noy deposition field [kgN m-2 s-1].

logical :: &
smtfrc ! If true, time smooth CESM forcing fields.
Expand All @@ -93,8 +99,10 @@ module mod_cesm
frzpot, mltpot, swa_da, nsf_da, hmlt_da, lip_da, sop_da, eva_da, &
rnf_da, rfi_da, fmltfz_da, sfl_da, ztx_da, mty_da, ustarw_da, &
slp_da, abswnd_da, ficem_da, lamult_da, lasl_da, flxdms_da, flxbrf_da, &
ustokes_da, vstokes_da, atmco2_da, atmbrf_da, smtfrc, l1ci, l2ci, &
inicon_cesm, inifrc_cesm, getfrc_cesm
ustokes_da, vstokes_da, atmco2_da, atmbrf_da,atmn2o_da,atmnh3_da,&
atmnhxdep_da,atmnoydep_da, &
smtfrc, l1ci, l2ci,inicon_cesm, inifrc_cesm, getfrc_cesm

contains

subroutine inicon_cesm
Expand All @@ -121,13 +129,13 @@ subroutine inifrc_cesm
if (.not. use_stream_relaxation) then
! If SST restoring is requested prepare interpolation and
! read climatological sea-ice concentration and surface temperature.
if (trxday > 0._r8) then
call initai
call rdcsic
call rdctsf
endif
if (trxday > 0._r8) then
call initai
call rdcsic
call rdctsf
endif

! If SSS restoring is requested, read climatological sea surface salinity.
! If SSS restoring is requested, read climatological sea surface salinity.
if (srxday > 0._r8) then
call rdcsss
end if
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to me these two changes in indentation should not be there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Came in before through master - fixed.

Expand Down Expand Up @@ -189,6 +197,10 @@ subroutine getfrc_cesm
vstokes(i, j) = w1*vstokes_da(i, j, l1ci) + w2*vstokes_da(i, j, l2ci)
atmco2(i, j) = w1*atmco2_da(i, j, l1ci) + w2*atmco2_da(i, j, l2ci)
atmbrf(i, j) = w1*atmbrf_da(i, j, l1ci) + w2*atmbrf_da(i, j, l2ci)
atmn2o(i, j) = w1*atmn2o_da(i, j, l1ci) + w2*atmn2o_da(i, j, l2ci)
atmnh3(i, j) = w1*atmnh3_da(i, j, l1ci) + w2*atmnh3_da(i, j, l2ci)
atmnhxdep(i, j) = w1*atmnhxdep_da(i, j, l1ci) + w2*atmnhxdep_da(i, j, l2ci)
atmnoydep(i, j) = w1*atmnoydep_da(i, j, l1ci) + w2*atmnoydep_da(i, j, l2ci)
enddo
enddo
do l = 1, isu(j)
Expand Down Expand Up @@ -228,6 +240,10 @@ subroutine getfrc_cesm
call ncdefvar('vstokes_da', 'x y', ndouble, 8)
call ncdefvar('atmco2_da', 'x y', ndouble, 8)
call ncdefvar('atmbrf_da', 'x y', ndouble, 8)
call ncdefvar('atmn2o_da', 'x y', ndouble, 8)
call ncdefvar('atmnh3_da', 'x y', ndouble, 8)
call ncdefvar('atmnoydep_da', 'x y', ndouble, 8)
call ncdefvar('atmnoydep_da', 'x y', ndouble, 8)
call ncdefvar('ztx_da', 'x y', ndouble, 8)
call ncdefvar('mty_da', 'x y', ndouble, 8)
call ncedef
Expand Down Expand Up @@ -272,6 +288,14 @@ subroutine getfrc_cesm
ip, 1, 1._r8, 0._r8, 8)
call ncwrtr('atmbrf_da', 'x y', atmbrf_da(1 - nbdy, 1 - nbdy, l2ci), &
ip, 1, 1._r8, 0._r8, 8)
call ncwrtr('atmn2o_da', 'x y', atmn2o_da(1 - nbdy, 1 - nbdy, l2ci), &
ip, 1, 1._r8, 0._r8, 8)
call ncwrtr('atmnh3_da', 'x y', atmnh3_da(1 - nbdy, 1 - nbdy, l2ci), &
ip, 1, 1._r8, 0._r8, 8)
call ncwrtr('atmnhxdep_da', 'x y', atmnhxdep_da(1 - nbdy, 1 - nbdy, l2ci), &
ip, 1, 1._r8, 0._r8, 8)
call ncwrtr('atmnoydep_da', 'x y', atmnoydep_da(1 - nbdy, 1 - nbdy, l2ci), &
ip, 1, 1._r8, 0._r8, 8)
call ncwrtr('ztx_da', 'x y', ztx_da(1 - nbdy, 1 - nbdy, l2ci), &
iu, 1, 1._r8, 0._r8, 8)
call ncwrtr('mty_da', 'x y', mty_da(1 - nbdy, 1 - nbdy, l2ci), &
Expand Down Expand Up @@ -307,6 +331,10 @@ subroutine getfrc_cesm
call chksummsk(vstokes, ip, 1, 'vstokes')
call chksummsk(atmco2, ip, 1, 'atmco2')
call chksummsk(atmbrf, ip, 1, 'atmbrf')
call chksummsk(atmn2o, ip, 1, 'atmn2o')
call chksummsk(atmnh3, ip, 1, 'atmnh3')
call chksummsk(atmnhxdep, ip, 1, 'atmnhxdep')
call chksummsk(atmnoydep, ip, 1, 'atmnoydep')
endif

end subroutine getfrc_cesm
Expand Down
1 change: 1 addition & 0 deletions cime_config/buildlib_2.1
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def _main_func():
os.path.join(comp_root_dir_ocn, "channel"),
os.path.join(comp_root_dir_ocn, "single_column"),
os.path.join(comp_root_dir_ocn, "pkgs", "CVMix-src", "src", "shared"),
os.path.join(comp_root_dir_ocn, "pkgs", "M4AGO-sinking-scheme", "src"),
os.path.join(comp_root_dir_ocn, "phy")]

if turbclo != 0 and tracers != 0:
Expand Down
1 change: 1 addition & 0 deletions cime_config/buildlib_2.2
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _main_func():
os.path.join(comp_root_dir_ocn, "channel"),
os.path.join(comp_root_dir_ocn, "single_column"),
os.path.join(comp_root_dir_ocn, "pkgs", "CVMix-src", "src", "shared"),
os.path.join(comp_root_dir_ocn, "pkgs", "M4AGO-sinking-scheme", "src"),
os.path.join(comp_root_dir_ocn, "phy")]

if turbclo != 0 and tracers != 0:
Expand Down
8 changes: 8 additions & 0 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def buildnml(case, caseroot, compname):
blom_tracer_modules = case.get_value("BLOM_TRACER_MODULES")
blom_atrc = case.get_value("BLOM_ATRC")
hamocc_ciso = case.get_value("HAMOCC_CISO")
hamocc_extncycle = case.get_value("HAMOCC_EXTNCYCLE")
hamocc_n2oc = case.get_value("HAMOCC_N2OC")
hamocc_atmndepc = case.get_value("HAMOCC_ATMNDEPC")
hamocc_m4ago = case.get_value("HAMOCC_M4AGO")
hamocc_sedbypass = case.get_value("HAMOCC_SEDBYPASS")
hamocc_sedspinup = case.get_value("HAMOCC_SEDSPINUP")
hamocc_sedspinup_yr_start = case.get_value("HAMOCC_SEDSPINUP_YR_START")
Expand Down Expand Up @@ -185,6 +189,10 @@ def buildnml(case, caseroot, compname):
config["blom_tracer_modules"] = blom_tracer_modules
config["blom_atrc"] = blom_atrc
config["hamocc_ciso"] = "yes" if hamocc_ciso else "no"
config["hamocc_extncycle"] = "yes" if hamocc_extncycle else "no"
config["hamocc_n2oc"] = "yes" if hamocc_n2oc else "no"
config["hamocc_atmndepc"] = "yes" if hamocc_atmndepc else "no"
config["hamocc_m4ago"] = "yes" if hamocc_m4ago else "no"
config["hamocc_sedbypass"] = "yes" if hamocc_sedbypass else "no"
config["hamocc_sedspinup"] = "yes" if hamocc_sedspinup else "no"
config["hamocc_sedspinup_yr_start"] = hamocc_sedspinup_yr_start
Expand Down
47 changes: 47 additions & 0 deletions cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,53 @@
<desc>Scenario for nitrogen deposition data. Requires module ecosys</desc>
</entry>

<entry id="HAMOCC_EXTNCYCLE">
<type>logical</type>
<valid_values>TRUE,FALSE</valid_values>
<default_value>FALSE</default_value>
<values>
<value compset="_BGC.*%N2OC">TRUE</value>
<value compset="_BGC.*%NH3C">TRUE</value>
<value compset="_BGC.*%ATMNDEPC">TRUE</value>
</values>
<group>run_component_blom</group>
<file>env_run.xml</file>
<desc>Set preprocessor option to activate the extended nitrogen cycle code. Requires module ecosys</desc>
</entry>

<entry id="HAMOCC_ATMNDEPC">
<type>logical</type>
<valid_values>TRUE,FALSE</valid_values>
<default_value>FALSE</default_value>
<values>
<value compset="_BGC.*%ATMNDEPC">TRUE</value>
</values>
<group>run_component_blom</group>
<file>env_run.xml</file>
<desc>Nitrogen deposition coupled from atmosphere. Requires module ecosys and extncycle</desc>
</entry>

<entry id="HAMOCC_N2OC">
<type>logical</type>
<valid_values>TRUE,FALSE</valid_values>
<default_value>FALSE</default_value>
<values>
<value compset="_BGC.*%N2OC%NH3C">TRUE</value>
</values>
<group>run_component_blom</group>
<file>env_run.xml</file>
<desc>N2O and NH3 fluxes coupled from atmosphere. Requires module ecosys and extncycle</desc>
</entry>

<entry id="HAMOCC_M4AGO">
<type>logical</type>
<valid_values>TRUE,FALSE</valid_values>
<default_value>FALSE</default_value>
<group>run_component_blom</group>
<file>env_run.xml</file>
<desc>Set preprocessor option to activate the M4AGO sinking scheme. Requires module ecosys</desc>
</entry>

<entry id="HAMOCC_CISO">
<type>logical</type>
<valid_values>TRUE,FALSE</valid_values>
Expand Down
Loading