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

Update CMEPS for wave slow loop coupling and provide hooks for S2SW coupling through CMEPS #61

Merged
merged 1,680 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1680 commits
Select commit Hold shift + click to select a range
0e662b0
first implementation of exchange grid
Jul 17, 2021
3a5725c
bug fixes
Jul 18, 2021
4372fe2
fixes to get flux computation on ocean grid working
Jul 18, 2021
b4a1983
refactor of mapping file specification
Jul 18, 2021
d30c9c1
more updates to have new code working on ogrid
Jul 18, 2021
b367433
Merge pull request #4 from hafs-community/feature/hafs_couplehycom_cdeps
BinLiu-NOAA Jul 19, 2021
ee58d15
add a stub interface
jedwards4b Jul 19, 2021
1e7b398
Fix Sa_o3 description
billsacks Jul 19, 2021
ef54ef9
updates to get aoflux on atm grid working
Jul 19, 2021
d54013a
Merge remote-tracking branch 'origin/support/HAFS' into feature/hafs_…
BinLiu-NOAA Jul 19, 2021
ac0ef28
change order of history options in config
DeniseWorthen Jul 20, 2021
cf77f34
add missing code for wave coupling
Jul 20, 2021
4445e35
propagate name changes
DeniseWorthen Jul 20, 2021
bfce319
update stub and use module
jedwards4b Jul 20, 2021
89c720f
white space and config changes
DeniseWorthen Jul 21, 2021
3cdfe02
wrap long line
DeniseWorthen Jul 21, 2021
12681eb
Merge remote-tracking branch 'origin/feature/add_albedos' into featur…
DeniseWorthen Jul 21, 2021
9b53ff7
make diag_init optional
DeniseWorthen Jul 22, 2021
b1d1e50
updates to get both aoflux agrid and xgrid working
Jul 22, 2021
59a59c2
update ESMF version in github action
jedwards4b Jul 22, 2021
c632e8a
fix pylint issue, update github workflow esmf version
jedwards4b Jul 22, 2021
4ce60e9
fix build issues
jedwards4b Jul 22, 2021
dd57edb
add comment
jedwards4b Jul 22, 2021
af38a87
cleanup
Jul 23, 2021
d379e47
fix for atm-wav configuration
Jul 23, 2021
ca1bfc4
Merge pull request #5 from hafs-community/feature/hafs_coupleww3
BinLiu-NOAA Jul 23, 2021
f461876
sync with ESCOMP master
Jul 23, 2021
3b275b6
refactored med_phases_aofluxes_mod for more code reuse
Jul 25, 2021
8880481
more refactor updates to modularize aoflux calculation
Jul 25, 2021
b065207
more modularization of med_phases_aoflux
Jul 25, 2021
05fdf8d
more cleanup of esmFldsExchange_cesm_mod
Jul 25, 2021
09e3e14
removed DEBUG writes
Jul 26, 2021
19d9a57
fixed problem when atm/ocn grid are the same and compilation with gnu
Jul 26, 2021
6ff50be
Merge pull request #217 from hafs-community/feature/pr
uturuncoglu Jul 28, 2021
74d3692
Use mol/mol for units of Sa_o3
billsacks Jul 28, 2021
16097a6
Rename values of atm_ozone_frequency namelist option
billsacks Jul 29, 2021
2939192
updates to get mid-year restarts working with CISM - resolves #143
Jul 29, 2021
7e9b3f0
Merge branch 'emc/develop' into feature/history_updates_add_albedos
DeniseWorthen Jul 29, 2021
b8a6dbb
update to fix xgrid mapping to ocn
Jul 30, 2021
e45d525
added second order conservative for Sa_u and Sa_v to xgrid
Jul 30, 2021
fd3fe24
fixed xgrid 2nd order mapping
Jul 30, 2021
d5dc9a9
updates for glc prep
Jul 31, 2021
76c57ae
Merge branch 'feature/fix_mom6diags' into feature/exchange_grid
Aug 1, 2021
36f54b9
fixed but for So_t to ice in esmFldsExchange_cesm.F90
Aug 1, 2021
53183fa
Merge pull request #215 from mvertens/feature/new_run_sequence
mvertens Aug 2, 2021
fc1182f
merge to cmeps0.13.9
Aug 2, 2021
908b1b2
Merge pull request #216 from mvertens/feature/exchange_grid
mvertens Aug 2, 2021
1430301
fix typo in config_component_cesm.xml
Aug 3, 2021
95a5ef0
Merge pull request #218 from mvertens/feature/fix_cimeconfig_bug
jedwards4b Aug 3, 2021
c0d8e01
fixed run sequence bug for G and C compsets
Aug 4, 2021
df53e4e
Merge pull request #219 from mvertens/feature/fix_runseq_bug
jedwards4b Aug 4, 2021
dbb2339
fixes to have agrid/xgrid in F compsets - including everyone on the s…
Aug 5, 2021
59fcbb3
add support for REST_OPTION end and always write a restart at end of …
jedwards4b Aug 5, 2021
c2829e1
fixed ang compilation problem
Aug 5, 2021
6082732
Merge pull request #222 from mvertens/feature/fix_compile_bug
jedwards4b Aug 5, 2021
8ff918f
Merge branch 'master' into feature/fix_xgrid_bugs
Aug 6, 2021
6f92298
write mediator restart at endofrun
jedwards4b Aug 6, 2021
473607e
remove debug print statement
jedwards4b Aug 6, 2021
9749b7d
Merge pull request #221 from jedwards4b/add_rest_option_end
jedwards4b Aug 6, 2021
b46716a
removed mct tests from testlist_drv.xml and renamed test category aux…
Aug 6, 2021
8b2a4a0
Merge branch 'master' into feature/fix_xgrid_bugs
Aug 6, 2021
328203f
fixed restart issues and runtime-issues associated with new xgrid logic
Aug 7, 2021
8638c9f
changed testlist
Aug 7, 2021
69d5fef
updated logic for write_restart_at_endofrun
Aug 7, 2021
0b00d51
fix for ERS restart problem
Aug 7, 2021
ed310ed
Merge pull request #224 from mvertens/feature/fix_ers_restart
jedwards4b Aug 7, 2021
8274bc5
merged to cmeps0.13.23
Aug 7, 2021
1c930f6
more fixes to get aoflux calculation working for all compsets tested
Aug 7, 2021
937dc04
fixed bug introduced for F compsets in med.F90
Aug 8, 2021
bb9cc98
a bit more cleanup
Aug 8, 2021
4ad10ab
got xgrid and agrid working and verified for f09_f09_mg17 F2000climo
Aug 9, 2021
1595be2
more fixes to get both C, G and F compsets all working
Aug 9, 2021
73738ec
incorporated normalization of one initializaiton in route handle crea…
Aug 9, 2021
2e6406d
Merge pull request #4 from billsacks/pass_ozone
billsacks Aug 9, 2021
b61dff4
Merge remote-tracking branch 'origin/master' into pass_ozone
billsacks Aug 9, 2021
ec8fd6b
Merge pull request #212 from billsacks/pass_ozone
mvertens Aug 10, 2021
43604f1
Merge branch 'master' into feature/fix_xgrid_bugs
Aug 10, 2021
b4b2a22
fixed hafs testing problem
Aug 11, 2021
83baa68
put in fix for history output of agrid aoflux output on ocn grid
Aug 11, 2021
5826e50
Merge branch 'NOAA-EMC:emc/develop' into feature/history_updates_add_…
DeniseWorthen Aug 11, 2021
4fcd058
removed references to is_local%wrap%do_med_aoflux
Aug 11, 2021
84c3012
removed references to is_local%wrap%do_med_aoflux
Aug 11, 2021
b19355f
Merge pull request #223 from mvertens/feature/fix_xgrid_bugs
mvertens Aug 12, 2021
4f61758
Merge pull request #1 from DeniseWorthen/feature/history_updates_add_…
mvertens Aug 16, 2021
1ba45a6
updated med_merge_mod and associated prep phase interfaces and verifi…
Aug 17, 2021
9c20fd9
Merge pull request #5 from jedwards4b/jedwards/smartsim
jedwards4b Aug 17, 2021
e06fa82
more updates to refactor accum and verified that ERS_Vnuopc_Ld5.f19_g…
Aug 17, 2021
367c0ec
update for prep_rof
Aug 17, 2021
3f7cafc
removed all references to is_local%wrap%FBImpAccum - this is no longe…
Aug 17, 2021
92ba918
replaced export accumulator field arrays with just the ocn accumulate…
Aug 17, 2021
eb8341f
refactored and significantly cleaned up the InitializeIPDv03p4 routin…
Aug 17, 2021
15976a7
nag did not like dimension(..)
jedwards4b Aug 19, 2021
54b6a3b
Merge pull request #6 from jedwards4b/revert_f2008_in_stubs
jedwards4b Aug 19, 2021
87290b5
Merge remote-tracking branch 'upstream/emc/develop' into feature/updc…
DeniseWorthen Aug 21, 2021
be343d8
Merge remote-tracking branch 'escomp/master' into feature/updcmeps
DeniseWorthen Aug 21, 2021
c6d5c11
fixes needed for ufs testing failures
Aug 24, 2021
1b3ae0f
added encoding='utf-8' to open file lines in buildexe and buildnml
Aug 24, 2021
fde3e01
merge to master
Aug 28, 2021
657ee4b
remote conflict in merge
Aug 28, 2021
5cd0bb2
reverted changes to master versions
Aug 28, 2021
f4b9f2d
revert to master version
Aug 28, 2021
6974330
removed component history phases as run sequence options and moved th…
Aug 29, 2021
4dc835f
more cleanup of new history capability for averaging
Aug 30, 2021
4e6b637
average history file fixes
Aug 30, 2021
6399616
got time average alarms to work correctly
Aug 31, 2021
c842625
shr_flux_mod change
jedwards4b Aug 31, 2021
d3486f3
Merge pull request #7 from jedwards4b/shr_flux_limit_fix
jedwards4b Sep 1, 2021
11357ff
Merge remote-tracking branch 'MV/feature/refactor_accum' into feature…
DeniseWorthen Sep 1, 2021
15e2b9b
refactor of med_io_mod time initialization
Sep 2, 2021
31525e7
more refactoring of history output to enable code reuse
Sep 4, 2021
a80f743
add chkerrs
DeniseWorthen Sep 5, 2021
8d07938
more cleanup
Sep 6, 2021
4c291c4
refactored different write phases to use module datatypes
Sep 7, 2021
81bed32
fix for ufs in completefieldinitialize
DeniseWorthen Sep 7, 2021
1d9492e
add chkerrs
DeniseWorthen Sep 7, 2021
7fbae52
clean up trailing whitespace
DeniseWorthen Sep 7, 2021
a2ed0c7
fix compile issue
DeniseWorthen Sep 7, 2021
ffcdf1c
Merge pull request #2 from DeniseWorthen/feature/cmepsaccum
mvertens Sep 7, 2021
75cc5da
add explicit encoding to open statements
jedwards4b Sep 7, 2021
233a89b
add fix for file writing when dststatus_print=true
DeniseWorthen Sep 7, 2021
dd0a5af
more code reuse introduced in med_phases_history_mod
Sep 8, 2021
9cb2db4
refactored history all write to use model clock
Sep 9, 2021
903e4f9
only one shared modelio namelist per component
jedwards4b Sep 9, 2021
7583d95
add pylint required encoding to open
jedwards4b Sep 9, 2021
2595ee3
one more open statement
jedwards4b Sep 9, 2021
8e95f7e
Merge pull request #227 from jedwards4b/share_modelio_namelist
jedwards4b Sep 10, 2021
ff422ba
put in call to mediator history output in med_phases_aofluxes_mod.F90
Sep 10, 2021
877b1c8
only one shared modelio namelist per component
jedwards4b Sep 9, 2021
eb6fe9b
add pylint required encoding to open
jedwards4b Sep 9, 2021
1e0f22d
updates for NUOPC_Realize call if mesh is transferred
Sep 11, 2021
6956aeb
merged to head of feature/refactor_accum
Sep 11, 2021
149dd16
resolved conflict with master
Sep 11, 2021
c240948
Merge pull request #226 from mvertens/feature/refactor_accum
mvertens Sep 11, 2021
f19485f
Merge branch 'master' into feature/history_refactor
Sep 11, 2021
a8fa999
more cleanup and code sharing
Sep 12, 2021
76a5e48
fixes based on aux_glc testing
Sep 15, 2021
594fd00
updates to have l2x1yr aux file written
Sep 20, 2021
bc07453
updates to clean up med_phases_prep_glc
Sep 20, 2021
6c54e3e
added fixes for multiple ice sheets
Sep 20, 2021
6d27534
add new rof to lnd field
swensosc Sep 20, 2021
c26a1b6
Merge remote-tracking branch 'escomp/master' into feature/updcmeps
DeniseWorthen Sep 21, 2021
320d751
backed out changes to med_phases_post_gcl
Sep 22, 2021
1416b3e
bug fixed to med_phases_post_glc
Sep 22, 2021
87901e5
Revert change that shouldn't have been in this branch and add a comment
billsacks Sep 22, 2021
477ff83
Fix github actions (#12)
fischer-ncar Sep 22, 2021
efb9870
fixed accumulation to rof from lnd restart issue
Sep 22, 2021
c5cb7ba
updated documentation from newdoc
Sep 22, 2021
6d77bc4
fixed issues with alarms
Sep 24, 2021
6c05e2d
fixed restart problem for aux_cam and aux_clm tests
Sep 24, 2021
09659a9
Merge pull request #230 from swensosc/master
mvertens Sep 24, 2021
b60e53c
fixed compilation bug
Sep 24, 2021
84c3300
removed num_icesheets and added mesh_glc
Sep 24, 2021
0217cf3
Merge pull request #232 from mvertens/feature/restart_bugfix
mvertens Sep 24, 2021
f5a319e
refatored inst output mode
Sep 25, 2021
e4b79ae
Merge remote-tracking branch 'mvertens/feature/bugfix_postglc' into f…
billsacks Sep 25, 2021
313f0f3
refactored aux and avg history files and restart output
Sep 25, 2021
21a1276
added more debugging info
Sep 26, 2021
a2aecf4
updates to master
Sep 27, 2021
3c5a784
made the F2000 test nuopc rather than mct
Sep 27, 2021
4ed6e9c
refactored testlist
Sep 27, 2021
082cbd9
add flag for check_input_data
jedwards4b Sep 29, 2021
ca3a0ad
Merge pull request #233 from jedwards4b/fix_mesh_check_input_data
jedwards4b Sep 29, 2021
822c8f3
Merge tag 'cmeps0.13.30' into feature/bugfix_postglc
billsacks Sep 30, 2021
b9cdf1f
Remove buggy double loop over ice sheet instances
billsacks Oct 6, 2021
f06fe9c
add testmod for y100k
jedwards4b Oct 7, 2021
ef01040
updates required in code review for PR
Oct 13, 2021
ca2ecb3
updates to master
Oct 13, 2021
f1d514f
Merge pull request #228 from mvertens/feature/history_refactor
mvertens Oct 13, 2021
aae1fe9
Merge remote-tracking branch 'escomp/master' into feature/updcmeps
DeniseWorthen Oct 13, 2021
95d0f10
fix for cmeps issue #235 and removal of null setting for local pointe…
Oct 14, 2021
11884b6
fix for issue #236
Oct 14, 2021
a0011cb
Merge remote-tracking branch 'MV/feature/cism_bugfixes' into feature/…
DeniseWorthen Oct 15, 2021
2a8ce4e
Merge pull request #238 from mvertens/feature/cism_bugfixes
mvertens Oct 15, 2021
e3ffe3d
add the new ww3->ocn export fields for SURFBANDS wave coupling method
alperaltuntas Oct 18, 2021
c24b358
set ww3dev polemethod to NONE for all import/export fields and update…
alperaltuntas Oct 18, 2021
abc117d
Merge pull request #240 from alperaltuntas/ww3dev_ocn_coupling
mvertens Oct 18, 2021
a695fc6
Add a comment
billsacks Oct 20, 2021
3472367
Add more comments
billsacks Oct 20, 2021
843a1f1
add u10m,v10m from atm->wav
DeniseWorthen Oct 21, 2021
7cd685f
Merge remote-tracking branch 'origin/master' into feature/bugfix_postglc
billsacks Oct 21, 2021
8f78866
fix logical format specifier
jedwards4b Oct 21, 2021
a0616fd
Merge remote-tracking branch 'origin/master' into feature/bugfix_postglc
billsacks Oct 21, 2021
c7da3b7
fix format issue
jedwards4b Oct 21, 2021
c41cf14
Merge pull request #242 from billsacks/feature/bugfix_postglc
jedwards4b Oct 22, 2021
614e1ac
Remove reference to Argonne and Sandia. (#14)
fischer-ncar Oct 26, 2021
f0fa04c
add wave->atm field
DeniseWorthen Oct 27, 2021
0d71259
changes needed to fix mom6 diag issues
Oct 15, 2021
fe2f566
more bug fixes found in validation of MOM6
Oct 26, 2021
84f1bc6
updates to budget table needed for MOM6
Oct 29, 2021
be3b1bb
Merge branch 'NOAA-EMC:emc/develop' into feature/wavcoupling
DeniseWorthen Oct 29, 2021
16364c2
add more wav coupling fields
DeniseWorthen Oct 29, 2021
fff8fbc
change mapping for z0
DeniseWorthen Oct 29, 2021
8be8da0
add -> wav in post atm and post ocn
DeniseWorthen Oct 30, 2021
8ec7328
add unity norm for wave
DeniseWorthen Oct 30, 2021
11bf3a1
added error checks on output from call diag_xxx
Nov 2, 2021
568f6c7
Merge pull request #248 from mvertens/feature/budget_table_updates
mvertens Nov 2, 2021
30533e5
bugfix for #247
Nov 2, 2021
769825f
change default version of budget table to v0 for non-pop or non-mom c…
Nov 3, 2021
5dc55a8
Merge pull request #249 from mvertens/feature/hist_bugfix
mvertens Nov 3, 2021
473ccf0
moved shr_flux_mod to cmeps
Nov 11, 2021
7188b11
pruned directory tree
Nov 11, 2021
cdf781d
removed .gitignore
Nov 11, 2021
cbf2dcf
Merge branch 'feature/share_prune' into feature/refactor_directories
Nov 11, 2021
71a26c8
more cesm directory refactor
Nov 11, 2021
2fe670f
moved shr_flux_mod to flux_atmocn_mod in its own directory
Nov 11, 2021
477a051
cleanup of flux_atmocn_mod
Nov 11, 2021
13c9f1f
renamed util to ufs
Nov 11, 2021
5cb7411
changes needed for new directory restructuring
Nov 11, 2021
c17dbca
moved files into ufs
Nov 11, 2021
e8ffeac
pruned directory and renamed some files
Nov 11, 2021
3555292
change flux_atmocn_mod to be consistent with changes in mediator
Nov 11, 2021
883e00d
more cleanup of ufs directory
Nov 11, 2021
d16ccaf
fixed compilation problems
Nov 11, 2021
6b59926
current tested changes for wave coupling
DeniseWorthen Nov 12, 2021
7a44b63
fix merge of stokes to ocn
DeniseWorthen Nov 14, 2021
23e1451
implemented different interface for ufs flux_atmocn_mod
Nov 14, 2021
5fdf78b
add compile fixes for ufs
DeniseWorthen Nov 14, 2021
8824b2e
renamed flux_atmocn_mod.F90 to shr_flux_mod since cam calls this for …
Nov 14, 2021
345d808
more cleanup of ufs and cesm differences
Nov 15, 2021
ca111da
removed reference to util and replaced with ufs
Nov 15, 2021
c4d43ba
clean up of Makefile
Nov 15, 2021
45207ec
removed references to use of med_kind_mod and introduced ufs_kind_mod
Nov 15, 2021
afe2b92
added ufs_kind_mod in more places
Nov 15, 2021
7170c76
fixed ufs Makefile
Nov 15, 2021
e703499
changed util to ufs
Nov 15, 2021
4ab9694
removed unneeded files needed by ufs
Nov 16, 2021
8405d2f
Merge pull request #256 from mvertens/feature/refactor_directories
mvertens Nov 16, 2021
f6409c4
Optional tiled history files for ATM (#257)
DeniseWorthen Nov 23, 2021
2c33532
Namelist trigger for passing channel depth fields from ROF to LND (#244)
ekluzek Dec 9, 2021
cd2ae27
Merge branch 'NOAA-EMC:emc/develop' into feature/wavcoupling
DeniseWorthen Dec 16, 2021
b873989
change Sw_zo to Sw_z0 for hafs
DeniseWorthen Dec 21, 2021
5fb8561
switch src/dst masks for wave
DeniseWorthen Dec 23, 2021
ed32e5d
adds DOUT_STAGING_ROOT variable (#246)
jedwards4b Dec 26, 2021
7929a40
new dynamic memory allocate in med_internalstate (#263)
mvertens Dec 27, 2021
84a17b7
tidy up, remove commented out code blocks
DeniseWorthen Dec 27, 2021
94ead4a
initial commit for waves in slow loop
DeniseWorthen Dec 31, 2021
1a27645
compile fixes
DeniseWorthen Dec 31, 2021
5cfe6c2
add retrieval of wav accum values on restart
DeniseWorthen Jan 3, 2022
5640b6b
Merge remote-tracking branch 'escomp/master' into feature/wavslowbs1
DeniseWorthen Jan 12, 2022
907a966
remove extra ice->atm mapping in post ice
DeniseWorthen Jan 12, 2022
e442504
fix compile errors
DeniseWorthen Jan 17, 2022
4322867
changes to fix budget issues for aoflux on xgrid (#262)
mvertens Jan 20, 2022
c03f5a4
mods to fix fire emissions bug (#265)
fvitt Jan 20, 2022
dcf29bf
Merge remote-tracking branch 'escomp/master' into feature/wavslowbs1
DeniseWorthen Jan 20, 2022
40be8c3
simplify src/dst masking for nems
DeniseWorthen Jan 21, 2022
963557d
fix nx,ny for compwav for writing accumWav
DeniseWorthen Jan 22, 2022
6066d50
insert conditional for waves in nems
DeniseWorthen Jan 22, 2022
3c5d32d
fixes for cesm run sequence
Jan 31, 2022
7419333
Add Wave slow loop coupling and Field Exchanges for waves in nems (#266)
DeniseWorthen Feb 1, 2022
aa24891
Merge remote-tracking branch 'escomp/master' into feature/wavslowbs1
DeniseWorthen Feb 1, 2022
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
23 changes: 9 additions & 14 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ Contributors other than yourself, if any:

CMEPS Issues Fixed (include github issue #):

Are changes expected to change answers?
- [ ] bit for bit
- [ ] different at roundoff level
- [ ] more substantial
Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial)

Any User Interface Changes (namelist or namelist defaults changes)?
- [ ] Yes
- [ ] No

Testing performed if application target is CESM:(either UFS-S2S or CESM testing is required):
### Testing performed

Testing performed if application target is CESM:
- [ ] (recommended) CIME_DRIVER=nuopc scripts_regression_tests.py
- machines:
- details (e.g. failed tests):
Expand All @@ -39,16 +36,14 @@ Testing performed if application target is UFS-HAFS:
- description:
- details (e.g. failed tests):

Hashes used for testing:
### Hashes used for testing:

- [ ] CESM:
- repository to check out: https://github.com/ESCOMP/CESM.git
- branch:
- hash:
- branch/hash:
- [ ] UFS-coupled, then umbrella repostiory to check out and associated hash:
- repository to check out:
- branch:
- hash:
- branch/hash:
- [ ] UFS-HAFS, then umbrella repostiory to check out and associated hash:
- repository to check out:
- branch:
- hash:
- branch/hash:
19 changes: 10 additions & 9 deletions cesm/nuopc_cap_share/shr_fire_emis_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ module shr_fire_emis_mod
character(len=name_len) :: name ! emissions component name (in fire emissions input table)
integer :: index
real(r8), pointer :: emis_factors(:) ! function of plant-function-type (PFT)
real(r8) :: coeff ! emissions component coeffecient
real(r8) :: molec_weight ! molecular weight of the fire emissions compound (g/mole)
type(shr_fire_emis_comp_t), pointer :: next_emiscomp ! points to next member in the linked list
endtype shr_fire_emis_comp_t
Expand All @@ -55,6 +54,7 @@ module shr_fire_emis_mod
type shr_fire_emis_mechcomp_t
character(len=16) :: name ! compound name
type(shr_fire_emis_comp_ptr), pointer :: emis_comps(:) ! an array of pointers to fire emis components
real(r8), pointer :: coeffs(:) ! coeffecients to emissions components
integer :: n_emis_comps ! number of fire emis compounds that make up the emissions for this mechanis compound
end type shr_fire_emis_mechcomp_t

Expand Down Expand Up @@ -96,7 +96,7 @@ subroutine shr_fire_emis_readnl( NLFileName, emis_nflds )
! corresponding chemical tracers.
!
!-------------------------------------------------------------------------

! input/output variables
character(len=*), intent(in) :: NLFileName ! name of namelist file
integer , intent(out) :: emis_nflds
Expand Down Expand Up @@ -125,12 +125,12 @@ subroutine shr_fire_emis_readnl( NLFileName, emis_nflds )
! If other processes have already initialized megan - then the info will just be re-initialized

call ESMF_VMGetCurrent(vm, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return

call ESMF_VMGet(vm, localPet=localPet, mpiCommunicator=mpicom, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return

! Note the following still needs to be called on all processors since the mpi_bcast is a collective
! Note the following still needs to be called on all processors since the mpi_bcast is a collective
! call on all the pes of mpicom
if (localPet==0) then
inquire( file=trim(NLFileName), exist=exists)
Expand Down Expand Up @@ -205,9 +205,12 @@ subroutine shr_fire_emis_init( specifier )
endif
shr_fire_emis_mechcomps(i)%n_emis_comps = item%n_terms
allocate(shr_fire_emis_mechcomps(i)%emis_comps(item%n_terms))
allocate(shr_fire_emis_mechcomps(i)%coeffs(item%n_terms))

shr_fire_emis_mechcomps(i)%coeffs(:) = item%coeffs(:)

do j = 1,item%n_terms
shr_fire_emis_mechcomps(i)%emis_comps(j)%ptr => add_emis_comp( item%vars(j), item%coeffs(j) )
shr_fire_emis_mechcomps(i)%emis_comps(j)%ptr => add_emis_comp( item%vars(j) )
enddo
shr_fire_emis_mechcomps_n = shr_fire_emis_mechcomps_n+1

Expand All @@ -224,10 +227,9 @@ end subroutine shr_fire_emis_init

!-------------------------------------------------------------------------

function add_emis_comp( name, coeff ) result(emis_comp)
function add_emis_comp( name ) result(emis_comp)

character(len=*), intent(in) :: name
real(r8), intent(in) :: coeff
type(shr_fire_emis_comp_t), pointer :: emis_comp

emis_comp => get_emis_comp_by_name(shr_fire_emis_linkedlist, name)
Expand All @@ -245,7 +247,6 @@ function add_emis_comp( name, coeff ) result(emis_comp)
emis_comp%index = shr_fire_emis_comps_n+1

emis_comp%name = trim(name)
emis_comp%coeff = coeff
nullify(emis_comp%next_emiscomp)

call add_emis_comp_to_list(emis_comp)
Expand Down
3 changes: 1 addition & 2 deletions cime_config/buildexe
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def _main_func():
cime_model = case.get_value("MODEL")
num_esp = case.get_value("NUM_COMP_INST_ESP")
ocn_model = case.get_value("COMP_OCN")
atm_model = case.get_value("COMP_ATM")
gmake_args = get_standard_makefile_args(case)
esmf_aware_threading = case.get_value("ESMF_AWARE_THREADING")

Expand All @@ -63,7 +62,7 @@ def _main_func():
else:
skip_mediator = False

if ocn_model == 'mom' or atm_model == "ufsatm":
if ocn_model == 'mom':
gmake_args += "USE_FMS=TRUE"

comp_classes = case.get_values("COMP_CLASSES")
Expand Down
26 changes: 11 additions & 15 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -223,21 +223,21 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
# End if pause is active

#--------------------------------
# (1) Specify input data list file
# Specify input data list file
#--------------------------------
data_list_path = os.path.join(case.get_case_root(), "Buildconf", "cpl.input_data_list")
if os.path.exists(data_list_path):
os.remove(data_list_path)

#--------------------------------
# (2) Write namelist file drv_in and initial input dataset list.
# Write namelist file drv_in and initial input dataset list.
#--------------------------------
namelist_file = os.path.join(confdir, "drv_in")
drv_namelist_groups = ["papi_inparm", "pio_default_inparm", "prof_inparm", "debug_inparm"]
nmlgen.write_output_file(namelist_file, data_list_path=data_list_path, groups=drv_namelist_groups)

#--------------------------------
# (3) Write nuopc.runconfig file and add to input dataset list.
# Write nuopc.runconfig file and add to input dataset list.
#--------------------------------

# Determine valid components
Expand Down Expand Up @@ -291,7 +291,7 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
nmlgen.write_nuopc_config_file(nuopc_config_file, data_list_path=data_list_path)

#--------------------------------
# (3.1) Update nuopc.runconfig file if component needs it
# Update nuopc.runconfig file if component needs it
#--------------------------------

# Read nuopc.runconfig
Expand Down Expand Up @@ -330,12 +330,12 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
f.write(line)

#--------------------------------
# (4) Write nuopc.runseq
# Write nuopc.runseq
#--------------------------------
_create_runseq(case, coupling_times, valid_comps)

#--------------------------------
# (5) Write drv_flds_in
# Write drv_flds_in
#--------------------------------
# In thte following, all values come simply from the infiles - no default values need to be added
# FIXME - do want to add the possibility that will use a user definition file for drv_flds_in
Expand Down Expand Up @@ -567,7 +567,6 @@ def buildnml(case, caseroot, component):
files.set_value("COMP_ROOT_DIR_CPL", comp_root_dir_cpl)

definition_file = [files.get_value("NAMELIST_DEFINITION_FILE", {"component": "cpl"})]
fd_dir = os.path.dirname(definition_file[0])
user_definition = os.path.join(user_xml_dir, "namelist_definition_drv.xml")
if os.path.isfile(user_definition):
definition_file = [user_definition]
Expand Down Expand Up @@ -606,15 +605,12 @@ def buildnml(case, caseroot, component):
for filename in glob.glob(os.path.join(confdir, "*modelio*")):
shutil.copy(filename, rundir)

# copy fd_cesm.yaml to rundir
fd_dir = os.path.join(os.path.dirname(__file__),os.pardir,"mediator")
coupling_mode = case.get_value('COUPLING_MODE')
if coupling_mode == 'cesm':
filename = os.path.join(fd_dir,"fd_cesm.yaml")
elif 'nems' in coupling_mode or coupling_mode == 'hafs':
filename = os.path.join(fd_dir,"fd_nems.yaml")
# copy fd_cesm.yaml to rundir - look in user_xml_dir first
user_yaml_file = os.path.join(user_xml_dir, "fd_cesm.yaml")
if os.path.isfile(user_yaml_file):
filename = user_yaml_file
else:
expect(False, "coupling mode currently only supports cesm")
filename = os.path.join(os.path.dirname(__file__), os.pardir, "mediator", "fd_cesm.yaml")
shutil.copy(filename, os.path.join(rundir, "fd.yaml"))

###############################################################################
Expand Down
16 changes: 15 additions & 1 deletion cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<entry id="COUPLING_MODE">
<type>char</type>
<valid_values>cesm,nems_orig,nems_orig_data,nems_frac,hafs</valid_values>
<valid_values>cesm</valid_values>
<default_value>cesm</default_value>
<group>run_coupling</group>
<file>env_run.xml</file>
Expand Down Expand Up @@ -1685,6 +1685,20 @@
$CIMEROOT/machines/config_machines.xml</desc>
</entry>

<entry id="DIN_STAGING_ROOT">
<type>char</type>
<default_value>UNSET</default_value>
<group>run_din</group>
<file>env_run.xml</file>
<desc>
On some systems the filesystem of DIN_LOC_ROOT is not available on compute nodes and
data must be staged to a temporary location. If this variable is defined it will
be used as the root directory of an inputdata staging area.
Default values for the target machine are in the
$CIMEROOT/machines/config_machines.xml
</desc>
</entry>

<entry id="DOUT_S_ROOT">
<type>char</type>
<default_value>UNSET</default_value>
Expand Down
Loading