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

Sync with ESCOMP; fix aux history files for use_float=.true. #124

Merged
merged 706 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
706 commits
Select commit Hold shift + click to select a range
acbddd2
Merge branch 'emc/develop' into feature/fixsw
DeniseWorthen Jun 14, 2023
5f27114
both =0 is not an error
jedwards4b Jun 23, 2023
98dcf46
Merge pull request #392 from jedwards4b/fixforhighpecnt
jedwards4b Jul 10, 2023
6ef50f3
add surface flux rollover
jedwards4b Jul 24, 2023
5a3bd1c
Merge branch 'NOAA-EMC:emc/develop' into feature/fixsw
DeniseWorthen Jul 25, 2023
7b7d232
remove TODOs
DeniseWorthen Jul 27, 2023
4e09c3a
use log_error, not log_info
DeniseWorthen Jul 27, 2023
9bcf425
remove TODO
DeniseWorthen Jul 27, 2023
0dbe67e
fix the x case
jedwards4b Jul 28, 2023
427ebeb
add missing return error check for FldsExchange
DeniseWorthen Jul 29, 2023
957a0fb
address comments
DeniseWorthen Jul 31, 2023
9b2942a
alternate solution for X case
jedwards4b Jul 31, 2023
3d8e233
update esmf and pio externals used in srt github workflow
jedwards4b Aug 1, 2023
896b6a1
debug workflow
jedwards4b Aug 1, 2023
5945f78
try adding SRCROOT env variable
jedwards4b Aug 1, 2023
8282ebc
remove rof_name
jedwards4b Aug 1, 2023
65770e1
Merge pull request #397 from jedwards4b/xcase_fix
jedwards4b Aug 2, 2023
f5894d4
Merge branch 'main' into feature/fixsw
jedwards4b Aug 4, 2023
6dbea2c
Merge branch 'main' into add_gpu_gust
sjsprecious Aug 7, 2023
ec41c2f
revert changes for swnet in prep_ocn
DeniseWorthen Aug 7, 2023
72ee0b2
Add a new XML variable to apply the MPI wrapper script more generically.
sjsprecious Aug 8, 2023
e951fdc
Merge pull request #363 from sjsprecious/add_gpu_gust
jedwards4b Aug 9, 2023
b751891
Merge pull request #395 from DeniseWorthen/feature/fixsw
jedwards4b Aug 11, 2023
a6071c1
Add length to logic format.
fischer-ncar Aug 21, 2023
abaef5f
Merge pull request #403 from fischer-ncar/logic_length_nag
jedwards4b Aug 21, 2023
ceee88b
Merge branch 'main' into sfcflxrollover
jedwards4b Sep 1, 2023
fd65403
update for se scm
jtruesdal Sep 29, 2023
f168e93
Merge remote-tracking branch 'upstream/emc/develop' into feature/emc_…
DeniseWorthen Oct 7, 2023
31b7da6
Merge pull request #411 from DeniseWorthen/feature/emc_updates
jedwards4b Oct 10, 2023
65aeefb
fix hang on abort issue
jedwards4b Oct 10, 2023
811580f
Merge pull request #394 from jedwards4b/sfcflxrollover
jedwards4b Oct 11, 2023
8038372
Merge pull request #412 from jedwards4b/abort_bugfix
jedwards4b Oct 11, 2023
493a9b9
support for job_priority on derecho
jedwards4b Oct 12, 2023
04e2f6b
Merge pull request #413 from jedwards4b/derecho_priority
jedwards4b Oct 13, 2023
1f0d9e8
remove this unused variable
jedwards4b Oct 23, 2023
d86f405
initial work for inline cdeps
uturuncoglu Oct 25, 2023
5510ad7
more work for cdeps inline
uturuncoglu Oct 27, 2023
6438f3d
more work for inline
uturuncoglu Nov 2, 2023
914957b
Merge pull request #417 from jedwards4b/remove_esmf_logfile_kind
jedwards4b Nov 6, 2023
bcee457
use esmf config file to get stream information
uturuncoglu Nov 7, 2023
96c81b6
more work for inline capability
uturuncoglu Nov 7, 2023
9972d73
Merge remote-tracking branch 'ESCOMP/main' into feature/emc_updates
DeniseWorthen Nov 7, 2023
01bf411
Merge pull request #418 from DeniseWorthen/feature/emc_updates
jedwards4b Nov 7, 2023
794e691
enabling setting source and destination mask for interpolation
uturuncoglu Nov 9, 2023
17b127d
more work for cdeps inline
uturuncoglu Nov 11, 2023
f9ac7af
more work for cmeps and cdeps inline integration
uturuncoglu Nov 12, 2023
b0af4aa
add atm->ocn direction for cdeps inline capability
uturuncoglu Nov 15, 2023
1296a90
activate cdeps inline capability for atm->wav
uturuncoglu Nov 16, 2023
2035266
more changes for derecho
jedwards4b Nov 22, 2023
73ab51a
Merge tag 'cmeps0.14.43' into cmeps0.14.43_scamdev
jtruesdal Nov 26, 2023
a2c16dc
remove the SMP_PRESENT variable and replace with BUILD_THREADED
jedwards4b Dec 14, 2023
778f8c9
Merge pull request #419 from jedwards4b/update_testlist
jedwards4b Dec 15, 2023
ad4d7a3
Merge pull request #421 from jedwards4b/remove_smp_present
jedwards4b Dec 15, 2023
e0731f9
Add modifications to compute gust addition to U10 and control with a …
megandevlan Dec 19, 2023
2df3414
Fix shr_flux comments and cdn calculation
megandevlan Dec 20, 2023
6c321f1
update github tests
jedwards4b Dec 21, 2023
09568f1
fix testing issues
jedwards4b Dec 21, 2023
e96e199
fixing tests
jedwards4b Dec 21, 2023
18c510b
add check for cam_dev if add_gusts is true
jedwards4b Dec 21, 2023
f04687b
add check for cam_dev
jedwards4b Dec 21, 2023
962484b
another reference to gust outside of cesm code
jedwards4b Dec 21, 2023
6d0e37e
debug tests
jedwards4b Dec 21, 2023
3051280
add submodule command
jedwards4b Dec 21, 2023
aaa78b8
add submodule command complication
jedwards4b Dec 21, 2023
b908586
Merge pull request #1 from jedwards4b/gustMods
megandevlan Dec 21, 2023
ce6c935
Merge pull request #422 from megandevlan/gustMods
jedwards4b Dec 21, 2023
46bf811
turn add_gusts on by default for camdev
jedwards4b Dec 21, 2023
d2a08f0
Merge pull request #424 from jedwards4b/gust_on_for_camdev
jedwards4b Dec 22, 2023
40ce110
For T compsets, only run GLC if med_to_glc is true
billsacks Dec 27, 2023
cdb819b
feature to use all data in the first coupling timestep
uturuncoglu Dec 28, 2023
8652157
Merge remote-tracking branch 'upstream/main' into feature/inline
uturuncoglu Dec 29, 2023
d56c50c
fix for gust additions in the aoflux
uturuncoglu Jan 5, 2024
4d08b94
Merge remote-tracking branch 'fork/emc/develop' into feature/inline
uturuncoglu Jan 5, 2024
55c8900
mods for regional mom6 configuration
uturuncoglu Jan 15, 2024
6979bbd
fix for sw bands calculation for cases without sea-ice
uturuncoglu Jan 17, 2024
10e46c3
more work for regional mom6 coupling
uturuncoglu Jan 19, 2024
ad1e9a2
update for hafs.mom6
uturuncoglu Jan 19, 2024
a1cbcbc
switch TOTAL to SELECT for other interpolation types too
uturuncoglu Jan 20, 2024
fb993eb
fix from Denise for crash when diagnose is on by initializing
uturuncoglu Jan 25, 2024
ffb5737
Merge pull request #425 from billsacks/fix_runseq_t_noevolve
jedwards4b Jan 26, 2024
8c10846
fix issue arised in CESM testing
uturuncoglu Jan 27, 2024
ea995f6
Merge remote-tracking branch 'noaa-emc/emc/develop' into feature/inline
uturuncoglu Jan 28, 2024
64e1c27
fix Faxa_rainc issue when add_gusts is turned on
uturuncoglu Jan 29, 2024
09dfd3c
fix comments mean -> inst and minor typo
uturuncoglu Jan 29, 2024
c4f5082
minor fix - remove trim
uturuncoglu Jan 30, 2024
e155c9a
srt does not work with most recent cime, cmeps requires most recent c…
jedwards4b Jan 30, 2024
43953e8
fix srt test
jedwards4b Jan 30, 2024
682a497
fix cime checkout
jedwards4b Jan 30, 2024
87c473c
turn off tmate
jedwards4b Jan 30, 2024
1290140
fix path
jedwards4b Jan 30, 2024
455b2be
debug workflow
jedwards4b Jan 31, 2024
170adbe
give format a length
jedwards4b Jan 31, 2024
7e0908c
Merge pull request #420 from uturuncoglu/feature/inline
jedwards4b Jan 31, 2024
4127636
fix dummy arguments w/o values
DeniseWorthen Jan 31, 2024
fa78b46
Merge branch 'NOAA-EMC:emc/develop' into feature/nowarn
DeniseWorthen Feb 5, 2024
661993f
Initial add of code to handle dust emissions, as per the document htt…
ekluzek Feb 8, 2024
5c39417
fix leap day issue
jedwards4b Feb 29, 2024
14878f4
add cpl_scalar for tiled grids, other minor fixes
DeniseWorthen Mar 3, 2024
91cc86e
Merge remote-tracking branch 'ESCOMP/main' into feature/cplscalars
DeniseWorthen Mar 3, 2024
f8fb572
Merge remote-tracking branch 'origin/feature/nowarn' into feature/cpl…
DeniseWorthen Mar 3, 2024
3515360
set ntile=0 when ntile scalar doesn't exist
DeniseWorthen Mar 3, 2024
ac5520f
fix restarts when ntile>0
DeniseWorthen Mar 4, 2024
8b02ffe
Run MED -> GLC in CISM NOEVOLVE mode
billsacks Mar 12, 2024
e6dda63
Merge pull request #439 from jtruesdal/cmeps0.14.43_scamdev
jedwards4b Mar 13, 2024
45d63c4
add two fixes
DeniseWorthen Mar 13, 2024
8309884
modify dstmask for lnd->atm in UFS
DeniseWorthen Mar 13, 2024
b5ae6fe
Update U10 to be resolved wind; add variable for U10+gusts
megandevlan Mar 14, 2024
d79e34f
Merge tag 'cmeps0.14.50' into dust_emis_mod
ekluzek Mar 15, 2024
1825c2b
Merge pull request #436 from DeniseWorthen/feature/cplscalars
jedwards4b Mar 19, 2024
ac458c3
Do GLC -> MED based on med_to_glc rather than run_glc
billsacks Mar 20, 2024
e05cbff
Fix calculation of gustiness
megandevlan Mar 26, 2024
a0dbcc3
Merge branch 'main' into mdfowler/gustMods_updateU10
jedwards4b Mar 26, 2024
084dd8d
Merge pull request #440 from megandevlan/mdfowler/gustMods_updateU10
jedwards4b Mar 26, 2024
bfdc85b
Merge pull request #435 from jedwards4b/fix/leapday
jedwards4b Mar 26, 2024
8774a9a
changes needed for adding a dglc component
Mar 27, 2024
60be83b
fixes an issue with symbols in compset names on derecho
jedwards4b Mar 27, 2024
a641b0a
clean up
jedwards4b Mar 27, 2024
e884e50
Merge pull request #444 from jedwards4b/fix/symbolsincompsetname
jedwards4b Mar 28, 2024
ea966dd
Merge branch 'main' into feature/add_dglc
Mar 28, 2024
c223a3c
changes to add compatibility with NorESM requirements
Mar 29, 2024
0ce3cc6
restructured fd_cesm.yaml so that sections make sense and description…
Mar 29, 2024
b8542e4
Merge branch 'fix/symbolsincompsetname' into HEAD
jedwards4b Mar 29, 2024
f5473d6
fix for add_gusts when coldair_outbreak_mod = .true.
jedwards4b Mar 29, 2024
f9169ce
updated to upcoming https://github.com/ESCOMP/CMEPS/pull/442
Mar 30, 2024
da7e7e8
Merge branch 'feature/add_dglc_sacks' into feature/add_dglc
Mar 30, 2024
cad2c33
updated coupling interval setting for dglc
Mar 30, 2024
f80f6ca
updated namelist_definition_drv.xml to bring in new wav2med auxiliary…
Mar 30, 2024
823f066
Output downscaled glacier data in cpl glc hist file (#441)
Katetc Mar 30, 2024
a077536
Merge pull request #446 from jedwards4b/fix/add_gusts
jedwards4b Apr 1, 2024
e24e0db
remove ESMF_GridCompGetInternalState from use statement, not working…
jedwards4b Apr 2, 2024
29a39fd
fix format error
jedwards4b Apr 2, 2024
777c380
need to allocate even though it is not used - nag
jedwards4b Apr 2, 2024
d6dc571
Merge pull request #449 from jedwards4b/fix/remove_use_ESMF_GridCompG…
jedwards4b Apr 2, 2024
2524eca
Merge branch 'main' into feature/add_dglc
mvertens Apr 3, 2024
07bbf45
fix internal ESMF divide by 0 error
jedwards4b Apr 4, 2024
3b1e50b
Merge pull request #445 from mvertens/feature/add_dglc
jedwards4b Apr 9, 2024
e22c4ea
Get to compile with nag compiler on izumi
ekluzek Apr 9, 2024
cce82b9
Merge remote-tracking branch 'ESCOMP/main' into bugfix/aoflux4ufs
DeniseWorthen Apr 11, 2024
05f05ce
fix aoflux routine for ufs
DeniseWorthen Apr 11, 2024
1213981
changes for adding multi-level docn input to cdeps
Apr 24, 2024
2289571
implemented correct mapping of multi-level ocean to glc
Apr 24, 2024
22dd074
Remove ESMF in favor of shr_mpi_mod, it is simpler this way, this als…
ekluzek Apr 26, 2024
8d295a7
Merge branch 'dust_emis_mod' of github.com:ekluzek/CMEPS into dust_em…
ekluzek Apr 26, 2024
492faf0
Add somethings needed for unit-testing and fix things identified there
ekluzek Apr 30, 2024
408be02
CAM%DEV changed to CAM70
brian-eaton Apr 30, 2024
8d3cd26
check_if_initiatlized to is_NOT_initialized
ekluzek Apr 30, 2024
ecb6d45
Fix so unit test will PASS
ekluzek Apr 30, 2024
0285eeb
Spin off the option checker
ekluzek May 1, 2024
0577deb
update esmf build
jedwards4b May 14, 2024
359513d
fix pio path in github srt
jedwards4b May 14, 2024
b5165bb
working on srt
jedwards4b May 14, 2024
91213a0
more workflow updates
jedwards4b May 14, 2024
6a52258
work on ext build
jedwards4b May 15, 2024
e0007c0
case error correction
jedwards4b May 15, 2024
85f0153
try this for cdeps build
jedwards4b May 15, 2024
e10beac
more github workflow work
jedwards4b May 15, 2024
522dd60
clean up compiler warnings
jedwards4b May 15, 2024
158c82f
remove unused shr_sys_abort
jedwards4b May 16, 2024
978fcaa
fix cdeps cache issue
jedwards4b May 16, 2024
7715f0b
renames ww3dev to ww3
jedwards4b May 16, 2024
f1fa80d
Merge pull request #456 from mvertens/feature/update_docn
jedwards4b May 16, 2024
23a52b2
avoid integer overflow by skipping mediator in restart loop
jedwards4b May 17, 2024
8fa0185
changes for trigrid
May 20, 2024
95d6f69
Merge pull request #457 from jedwards4b/ww3dev2ww3
jedwards4b May 22, 2024
6384ff4
Merge pull request #460 from jedwards4b/fix_mediator_restart
jedwards4b May 22, 2024
b3c1aa3
move glc2ocn with glc2rof
May 27, 2024
4a644c0
updates for cism2mosart coupling
May 29, 2024
a90affa
fixed ice discharge
May 30, 2024
b34de12
fixes for commit
May 31, 2024
d994773
Merge remote-tracking branch 'origin/feature/cism2mosart' into featur…
May 31, 2024
1451526
Add bilinr_nostd for wav2ice coupling
dabail10 May 31, 2024
452962c
bug fix
Jun 3, 2024
b3053ca
more updates
Jun 3, 2024
99113f0
Merge branch 'main' of https://github.com/ESCOMP/CMEPS into cam7
brian-eaton Jun 4, 2024
09132fd
Merge branch 'NOAA-EMC:emc/develop' into bugfix/aoflux4ufs
DeniseWorthen Jun 6, 2024
5ad8bfa
updates for cism->mosart->ocean routine
Jun 7, 2024
3e45430
more cleanup of mapping file specification
Jun 7, 2024
709de40
Merge remote-tracking branch 'ESCOMP/main' into bugfix/aoflux4ufs
DeniseWorthen Jun 7, 2024
21a692f
simply ufs fix for new aoflux variables
DeniseWorthen Jun 9, 2024
ec56320
generalized lnd2rof mapping
mvertens Jun 10, 2024
ac67312
updates to get f09_f09 working
Jun 10, 2024
dcabb38
test github testing in cime PR #4631
jedwards4b Jun 12, 2024
e643dfe
more cleanup
Jun 14, 2024
6bd2631
Merge branch 'feature/cism2mosart' into feature/trigrid
mvertens Jun 16, 2024
e35644a
fixed compilation problems
Jun 16, 2024
5e5c181
add simplification for how glc runoff is sent to mom/blom
Jun 18, 2024
396f5be
Merge pull request #464 from jedwards4b/test_cime_branch
jedwards4b Jun 18, 2024
3455b50
Revert "test github testing in cime PR #4631"
jedwards4b Jun 18, 2024
df68ec5
Merge pull request #468 from ESCOMP/revert-464-test_cime_branch
jedwards4b Jun 18, 2024
f79221e
replace manage-externals with git-fleximod
jedwards4b Jun 18, 2024
1e9f5dc
Merge pull request #469 from jedwards4b/test_github_workflow
jedwards4b Jun 18, 2024
4dca7c6
Merge remote-tracking branch 'origin/main' into feature/cism2mosart
jedwards4b Jun 18, 2024
d062482
Merge branch 'feature/cism2mosart' into feature/trigrid
mvertens Jun 18, 2024
a1209b8
fix for merging in trigrid
mvertens Jun 19, 2024
3737040
Merge remote-tracking branch 'ESCOMP/main' into bugfix/aoflux4ufs
DeniseWorthen Jun 19, 2024
90f815b
Merge pull request #462 from brian-eaton/cam7
jedwards4b Jun 20, 2024
ef749fa
Remove negative runoff by downweighting positive runoff globally
billsacks Jun 21, 2024
f3761e0
Removing negative runoff: Create a dedicated FieldBundle for mods
billsacks Jun 22, 2024
8133bdc
Add a namelist flag controlling the removal of negative runoff
billsacks Jun 22, 2024
f960f3e
Merge pull request #463 from mvertens/feature/cism2mosart
jedwards4b Jun 24, 2024
8b6aa75
this call is no longer needed and removing it fully removes the mct l…
jedwards4b Jun 24, 2024
e84e8a1
Merge pull request #452 from DeniseWorthen/bugfix/aoflux4ufs
jedwards4b Jun 24, 2024
95137f4
fix use_float=.true. for aux history files
DeniseWorthen Jun 24, 2024
dc501e9
fix indenting
DeniseWorthen Jun 24, 2024
d183d22
fix for UFS
Jun 24, 2024
49b94d0
Merge remote-tracking branch 'origin/main' into remove_negative_runoff
billsacks Jun 24, 2024
516b8ef
Remove negative runoff from new glc runoff fields
billsacks Jun 24, 2024
4c5996e
Don't try to remove negative runoff on an absent field
billsacks Jun 24, 2024
b2cb575
Merge pull request #472 from jedwards4b/remove_mct_init
jedwards4b Jun 25, 2024
2d3c1a7
updates for new fields from ocn
Jun 25, 2024
5624c70
fixes for problems found in UFS
Jun 25, 2024
293a46f
Merge tag 'cmeps0.14.70' into feature/trigrid
Jun 25, 2024
9b3cec2
fixed bug
Jun 25, 2024
66ce7e5
fixed bug
Jun 26, 2024
c5973fd
Merge pull request #471 from billsacks/remove_negative_runoff
jedwards4b Jun 26, 2024
6b58961
Merge pull request #461 from dabail10/wavice
jedwards4b Jun 26, 2024
e1335d3
Merge pull request #429 from ekluzek/dust_emis_mod
jedwards4b Jun 26, 2024
1dd90c7
Merge pull request #470 from mvertens/feature/trigrid
jedwards4b Jun 26, 2024
06a825a
bug fix for wav2ocn_map
jedwards4b Jun 26, 2024
3fcfa97
Merge remote-tracking branch 'ESCOMP/main' into feature/fixfloat4auxhist
DeniseWorthen Jun 27, 2024
2bb653d
aux history (float) should not use ntiles
DeniseWorthen Jun 27, 2024
f2af60b
new fix for add_gusts
jedwards4b Jun 27, 2024
428ecc6
update share to use head of main in srt test
jedwards4b Jun 28, 2024
1605a75
debug workflow
jedwards4b Jun 28, 2024
7085a87
bug fix primarily for usf testing
Jul 1, 2024
fbb2318
remove redundent use statement
jedwards4b Jul 1, 2024
527f9a5
removed duplicate references
Jul 1, 2024
3305e11
Merge pull request #474 from jedwards4b/add_gust_fix3
jedwards4b Jul 1, 2024
7a265d7
Merge branch 'main' into feature/bugfix
jedwards4b Jul 1, 2024
47fb4e6
Merge pull request #477 from mvertens/feature/bugfix
jedwards4b Jul 1, 2024
96c9095
gnu reports an error if this unused variable is not allocated
jedwards4b Jul 9, 2024
c2ef06d
Merge pull request #479 from jedwards4b/fix/gnu_unallocated_array_error
jedwards4b Jul 9, 2024
df46cf1
Separate the control of removing negative runoff for lnd vs glc
billsacks Jul 9, 2024
1b8920c
Merge pull request #481 from billsacks/remove_negative_runoff_land_only
billsacks Jul 10, 2024
e4a5e58
make sure variables are allocated before deallocating (#480)
jedwards4b Jul 11, 2024
df41c29
Declare cnt variable needed with ESMF_AWARE_THREADING
billsacks Jul 12, 2024
ce9cfe2
fix bug in ocn2glc_coupling and add blom (#484)
mvertens Jul 12, 2024
f62eff7
Merge remote-tracking branch 'ESCOMP/main' into feature/fixfloat4auxhist
DeniseWorthen Jul 24, 2024
8a30f50
fixes from testing for ATM auxhist output
DeniseWorthen Jul 25, 2024
10ffcc8
Merge pull request #485 from billsacks/declare_cnt
jedwards4b Jul 25, 2024
fdb9e0e
fix an error in the aoflux wind_gust fields
jedwards4b Jul 25, 2024
4520051
Merge pull request #487 from jedwards4b/fix/aoflux_merge_error
jedwards4b Jul 25, 2024
674f026
Merge remote-tracking branch 'ESCOMP/main' into HEAD
DeniseWorthen Jul 26, 2024
882d485
fix garbled print statement for scalars
DeniseWorthen Jul 26, 2024
e6ad652
Compute and export heat content associated with glc runoffs
alperaltuntas Jul 27, 2024
5adf83a
nan was picked up in pslv field on first pass
jedwards4b Jul 31, 2024
72280dd
Merge pull request #488 from DeniseWorthen/feature/fixfloat4auxhist
jedwards4b Aug 1, 2024
739b964
Merge pull request #489 from alperaltuntas/add_glc_runoff_heat_content
jedwards4b Aug 1, 2024
a41d9c2
Merge pull request #490 from jedwards4b/fix_nan_in_pslv
jedwards4b Aug 1, 2024
d90a4f0
Merge remote-tracking branch 'ESCOMP/main' into feature/fixaux
DeniseWorthen Aug 2, 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 cesm/driver/esm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,9 @@ subroutine esm_init_pelayout(driver, maxthreads, rc)
character(len=5) :: inst_suffix
character(CL) :: cvalue
logical :: found_comp
#ifdef ESMF_AWARE_THREADING
integer :: cnt
#endif
integer :: rank, nprocs, ierr
character(len=*), parameter :: subname = "(esm_pelayout.F90:esm_init_pelayout)"
!---------------------------------------
Expand Down
78 changes: 68 additions & 10 deletions cime_config/config_component_cesm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,54 @@
</desc>
</entry>

<entry id="DMS_EMIS_OCN">
<type>logical</type>
<default_value>FALSE</default_value>
<valid_values>TRUE,FALSE</valid_values>
<group>run_coupling</group>
<file>env_run.xml</file>
<desc>
Activates DMS fluxes to be sent from ocn to atm.
Currently this is only available with BLOM ocean component.
</desc>
</entry>

<entry id="BRF_EMIS_OCN">
<type>logical</type>
<default_value>FALSE</default_value>
<valid_values>TRUE,FALSE</valid_values>
<group>run_coupling</group>
<file>env_run.xml</file>
<desc>
Activates Bromoform fluxes to be sent from ocn to atm.
Currently this is only available with BLOM ocean component.
</desc>
</entry>

<entry id="N2O_EMIS_OCN">
<type>logical</type>
<default_value>FALSE</default_value>
<valid_values>TRUE,FALSE</valid_values>
<group>run_coupling</group>
<file>env_run.xml</file>
<desc>
Activates N2O fluxes to be sent from ocn to atm.
Currently this is only available with BLOM ocean component.
</desc>
</entry>

<entry id="NH3_EMIS_OCN">
<type>logical</type>
<default_value>FALSE</default_value>
<valid_values>TRUE,FALSE</valid_values>
<group>run_coupling</group>
<file>env_run.xml</file>
<desc>
Activates NH3 fluxes to be sent from ocn to atm.
Currently this is only available with BLOM ocean component.
</desc>
</entry>

<entry id="CPL_USER_MODS">
<type>char</type>
<valid_values></valid_values>
Expand Down Expand Up @@ -190,21 +238,23 @@
<!-- =================================================== -->
<value compset="_DATM.*_DICE.*_POP2">24</value>
<value compset="_DATM.*_DICE.*_MOM6">24</value>
<!-- TODO: currently a NUOPC runseqence cannot be generated with the ATM_NCPL < OCN_NCPL - as is the case -->
<!-- with the POP2 C compset run sequence - for now will set these to be the same as MOM6 -->
<value compset="_DATM.*_DICE.*_BLOM">24</value>
<!-- NOTE: currently a NUOPC runseqence cannot be generated with the ATM_NCPL < OCN_NCPL -->
<!-- =================================================== -->
<!-- G compsets -->
<!-- =================================================== -->
<value compset="_DATM.*_SLND.*_CICE.*_POP2">24</value>
<value compset="_DATM.*_SLND.*_CICE.*_POP2" grid="oi%tx0.1v3">144</value>
<value compset="_DATM.*_SLND.*_CICE.*_MOM6">24</value>
<value compset="_DATM.*_SLND.*_CICE.*_BLOM">24</value>
<value compset="_DATM.*_CICE.*_DOCN">24</value>
<!-- =================================================== -->
<!-- C/G compsets -->
<!-- =================================================== -->
<value compset="_DATM.*_DOCN%US20">24</value>
<value compset="_DATM%CPLHIST.+POP\d">48</value>
<value compset="_DATM%CPLHIST.+MOM\d">48</value>
<value compset="_DATM%CPLHIST.+BLOM\d">48</value>
<!-- =================================================== -->
<!-- atm dependent resolutions (primarily CAM) -->
<!-- =================================================== -->
Expand Down Expand Up @@ -279,6 +329,7 @@
<default_value>$ATM_NCPL</default_value>
<values match="last">
<value compset="_MOM6">24</value>
<value compset="_BLOM">24</value>
<value compset="_POP2" grid="oi%gx3v7">1</value>
<value compset="_POP2" grid="oi%gx1v6">24</value>
<value compset="_POP2" grid="oi%gx1v7">24</value>
Expand All @@ -303,6 +354,7 @@
<value compset="_SGLC">$ATM_NCPL</value>
<value compset="_XGLC">$ATM_NCPL</value>
<value compset="_MOM6">1</value>
<value compset="_BLOM">1</value>
</values>
<group>run_coupling</group>
<file>env_run.xml</file>
Expand Down Expand Up @@ -336,11 +388,13 @@
<values match="last">
<value compset="_DATM.*_POP2.*_DROF" grid="oi%gx3v7">1</value>
<value compset="_DATM.*_MOM6.*_DROF" >$ATM_NCPL</value>
<value compset="_DATM.*_BLOM.*_DROF" >$ATM_NCPL</value>
<value compset="_DATM.*_DOCN%SOM" >$ATM_NCPL</value>
<value compset="_DATM.*_SLND.*_DICE.*_DOCN" >$ATM_NCPL</value>
<value compset="_MIZUROUTE_" >1</value>
<value compset="_DATM%CPLHIST.+POP\d" >8</value>
<value compset="_DATM%CPLHIST.+MOM\d" >8</value>
<value compset="_DATM%CPLHIST.+BLOM\d" >8</value>
<value compset="_XATM.*_XLND.*_XICE.*_XOCN" >$ATM_NCPL</value>
<value compset="_DLND.*_CISM\d" >1</value>
<value compset="_XROF" >$ATM_NCPL</value>
Expand Down Expand Up @@ -372,13 +426,14 @@
<values match="last">
<value compset="DATM.+POP\d">TRUE</value>
<value compset="DATM.+MOM\d">TRUE</value>
<value compset="DATM.+BLOM\d">TRUE</value>
<value compset="DATM.+DOCN%IAF">TRUE</value>
<value compset="DATM%CPLHIST.+POP\d">FALSE</value>
</values>
<group>run_component_cpl</group>
<file>env_run.xml</file>
<desc>
Only used for compsets with DATM and POP (currently C, G and J):
Only used for compsets with DATM and [POP or MOM] (currently C, G and J):
If true, compute albedos to work with daily avg SW down
If false (default), albedos are computed with the assumption that downward
solar radiation from the atm component has a diurnal cycle and zenith-angle
Expand Down Expand Up @@ -419,14 +474,15 @@
<valid_values>TIGHT,OPTION1,OPTION2</valid_values>
<default_value>TIGHT</default_value>
<values match="last">
<value compset="_DATM.*_DOCN%SOM" >OPTION2</value>
<value compset="_POP2" >OPTION2</value>
<value compset="_MOM6" >OPTION1</value>
<value compset="_POP2" grid="oi%gx1v6" >OPTION1</value>
<value compset="_POP2" grid="oi%gx1v7" >OPTION1</value>
<value compset="_DATM.*_DOCN%SOM" >OPTION2</value>
<value compset="_POP2" >OPTION2</value>
<value compset="_MOM6" >OPTION1</value>
<value compset="_BLOM" >OPTION1</value>
<value compset="_POP2" grid="oi%gx1v6" >OPTION1</value>
<value compset="_POP2" grid="oi%gx1v7" >OPTION1</value>
<value compset="_DATM%NYF.*_SLND.*_DICE.*_DOCN" >OPTION2</value>
<value compset="_XATM.*_XLND.*_XICE.*_XOCN" >OPTION2</value>
<value compset="_SOCN" >OPTION2</value>
<value compset="_XATM.*_XLND.*_XICE.*_XOCN" >OPTION2</value>
<value compset="_SOCN" >OPTION2</value>
</values>
<group>run_coupling</group>
<file>env_run.xml</file>
Expand Down Expand Up @@ -482,7 +538,9 @@
<values match="last">
<value compset="DATM.*_POP\d">TRUE</value>
<value compset="DATM.*_MOM\d">TRUE</value>
<value compset="DATM.*_BLOM\d">TRUE</value>
<value compset="CAM.*_MOM\d">TRUE</value>
<value compset="CAM.*_BLOM\d">TRUE</value>
<value compset="CAM.*_POP\d">TRUE</value>
<value compset="CAM.*_DOCN%SOM">TRUE</value>
</values>
Expand Down
63 changes: 61 additions & 2 deletions cime_config/namelist_definition_drv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -872,17 +872,28 @@
<value COMP_LND="xlnd">off</value>
</values>
</entry>
<entry id="remove_negative_runoff">
<entry id="remove_negative_runoff_lnd">
<type>logical</type>
<category>control</category>
<group>MED_attributes</group>
<desc>
If true, remove negative runoff by downweighting all positive runoff globally.
If true, remove negative runoff generated from the land component by downweighting all positive runoff globally.
</desc>
<values>
<value>.true.</value>
</values>
</entry>
<entry id="remove_negative_runoff_glc">
<type>logical</type>
<category>control</category>
<group>MED_attributes</group>
<desc>
If true, remove negative runoff generated from the glc (ice sheet) component by downweighting all positive runoff globally.
</desc>
<values>
<value>.false.</value>
</values>
</entry>

<entry id="info_debug" modify_via_xml="INFO_DBUG">
<type>integer</type>
Expand Down Expand Up @@ -2415,6 +2426,54 @@
</values>
</entry>

<entry id="flds_dms" modify_via_xml="DMS_EMIS_OCN">
<type>logical</type>
<category>flds</category>
<group>ALLCOMP_attributes</group>
<desc>
Pass DMS from OCN to ATM component
</desc>
<values>
<value>.false.</value>
</values>
</entry>

<entry id="flds_brf" modify_via_xml="BRF_EMIS_OCN">
<type>logical</type>
<category>flds</category>
<group>ALLCOMP_attributes</group>
<desc>
Pass Bromoform from OCN to ATM component
</desc>
<values>
<value>.false.</value>
</values>
</entry>

<entry id="flds_n2o" modify_via_xml="N2O_EMIS_OCN">
<type>logical</type>
<category>flds</category>
<group>ALLCOMP_attributes</group>
<desc>
Pass N2O from OCN to ATM component
</desc>
<values>
<value>.false.</value>
</values>
</entry>

<entry id="flds_nh3" modify_via_xml="NH3_EMIS_OCN">
<type>logical</type>
<category>flds</category>
<group>ALLCOMP_attributes</group>
<desc>
Pass NH3 from OCN to ATM component
</desc>
<values>
<value>.false.</value>
</values>
</entry>

<entry id="flds_bgc_oi">
<type>logical</type>
<category>seq_flds</category>
Expand Down
5 changes: 4 additions & 1 deletion mediator/esmFldsExchange_cesm_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2202,6 +2202,7 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
! ---------------------------------------------------------------------
! to ocn: enthalpy from atm rain, snow, evaporation
! to ocn: enthalpy from liquid and ice river runoff
! to ocn: enthalpy from liquid and ice glacier runoff
! to ocn: enthalpy from ice melt
! ---------------------------------------------------------------------
! Note - do not need to add addmap or addmrg for the following since they
Expand All @@ -2213,6 +2214,8 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
call addfld_to(compocn, 'Foxx_hcond')
call addfld_to(compocn, 'Foxx_hrofl')
call addfld_to(compocn, 'Foxx_hrofi')
call addfld_to(compocn, 'Foxx_hrofl_glc')
call addfld_to(compocn, 'Foxx_hrofi_glc')
end if

! ---------------------------------------------------------------------
Expand Down Expand Up @@ -3322,7 +3325,7 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
!-----------------------------
! to glc: from ocn
!-----------------------------
if (is_local%wrap%ocn2glc_coupling) then
if (ocn2glc_coupling) then
if (phase == 'advertise') then
call addfld_from(compocn, 'So_t_depth')
call addfld_from(compocn, 'So_s_depth')
Expand Down
10 changes: 10 additions & 0 deletions mediator/fd_cesm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,16 @@
canonical_units: W m-2
description: med export to ocn heat content of ice runoff
#
- standard_name: Foxx_hrofl_glc
alias: heat_content_rofl_glc
canonical_units: W m-2
description: med export to ocn heat content of liquid glc runoff
#
- standard_name: Foxx_hrofi_glc
alias: heat_content_rofi_glc
canonical_units: W m-2
description: med export to ocn heat content of ice glc runoff
#
- standard_name: Foxx_evap
alias: mean_evap_rate
canonical_units: kg m-2 s-1
Expand Down
7 changes: 3 additions & 4 deletions mediator/med.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2154,14 +2154,13 @@ subroutine DataInitialize(gcomp, rc)
end if
is_local%wrap%nx(n1) = nint(real_nx)
is_local%wrap%ny(n1) = nint(real_ny)
endif
if (is_local%wrap%comp_present(n1)) then

write(msgString,'(3i8)') is_local%wrap%nx(n1), is_local%wrap%ny(n1), is_local%wrap%ntile(n1)
call ESMF_LogWrite(trim(subname)//":"//trim(compname(n1))//":"//trim(msgString), ESMF_LOGMSG_INFO)
if (maintask) then
write(logunit,'(a)') 'global nx,ny,ntile sizes for '//trim(compname(n1))//":"//trim(msgString)
end if
call ESMF_LogWrite(trim(subname)//":"//trim(compname(n1))//":"//trim(msgString), ESMF_LOGMSG_INFO)
endif
end if
end do
if (maintask) write(logunit,*)

Expand Down
22 changes: 15 additions & 7 deletions mediator/med_diag_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ module med_diag_mod
integer :: f_heat_cond = unset_index ! heat : heat content of evaporation
integer :: f_heat_rofl = unset_index ! heat : heat content of liquid runoff
integer :: f_heat_rofi = unset_index ! heat : heat content of ice runoff
integer :: f_heat_rofl_glc = unset_index ! heat : heat content of liquid glc runoff
integer :: f_heat_rofi_glc = unset_index ! heat : heat content of ice glc runoff

integer :: f_watr_frz = unset_index ! water: freezing
integer :: f_watr_melt = unset_index ! water: melting
Expand Down Expand Up @@ -330,14 +332,16 @@ subroutine med_diag_init(gcomp, rc)
f_heat_beg = f_heat_frz ! field first index for heat
f_heat_end = f_heat_sen ! field last index for heat
else if (trim(budget_table_version) == 'v1') then
call add_to_budget_diag(budget_diags%fields, f_heat_rain ,'hrain' ) ! field heat : enthalpy of rain
call add_to_budget_diag(budget_diags%fields, f_heat_snow ,'hsnow' ) ! field heat : enthalpy of snow
call add_to_budget_diag(budget_diags%fields, f_heat_evap ,'hevap' ) ! field heat : enthalpy of evaporation
call add_to_budget_diag(budget_diags%fields, f_heat_cond ,'hcond' ) ! field heat : enthalpy of evaporation
call add_to_budget_diag(budget_diags%fields, f_heat_rofl ,'hrofl' ) ! field heat : enthalpy of liquid runoff
call add_to_budget_diag(budget_diags%fields, f_heat_rofi ,'hrofi' ) ! field heat : enthalpy of ice runoff
call add_to_budget_diag(budget_diags%fields, f_heat_rain ,'hrain' ) ! field heat : enthalpy of rain
call add_to_budget_diag(budget_diags%fields, f_heat_snow ,'hsnow' ) ! field heat : enthalpy of snow
call add_to_budget_diag(budget_diags%fields, f_heat_evap ,'hevap' ) ! field heat : enthalpy of evaporation
call add_to_budget_diag(budget_diags%fields, f_heat_cond ,'hcond' ) ! field heat : enthalpy of evaporation
call add_to_budget_diag(budget_diags%fields, f_heat_rofl ,'hrofl' ) ! field heat : enthalpy of liquid runoff
call add_to_budget_diag(budget_diags%fields, f_heat_rofi ,'hrofi' ) ! field heat : enthalpy of ice runoff
call add_to_budget_diag(budget_diags%fields, f_heat_rofl_glc,'hrofl_glc' ) ! field heat : enthalpy of liquid glc runoff
call add_to_budget_diag(budget_diags%fields, f_heat_rofi_glc,'hrofi_glc' ) ! field heat : enthalpy of ice glc runoff
f_heat_beg = f_heat_frz ! field first index for heat
f_heat_end = f_heat_rofi ! field last index for heat
f_heat_end = f_heat_rofi_glc ! field last index for heat
end if

! -----------------------------------------
Expand Down Expand Up @@ -1601,6 +1605,10 @@ subroutine med_phases_diag_ocn( gcomp, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
call diag_ocn(is_local%wrap%FBExp(compocn), 'Foxx_hrofi', f_heat_rofi , ic, areas, sfrac, budget_local, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
call diag_ocn(is_local%wrap%FBExp(compocn), 'Foxx_hrofl_glc', f_heat_rofl_glc, ic, areas, sfrac, budget_local, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
call diag_ocn(is_local%wrap%FBExp(compocn), 'Foxx_hrofi_glc', f_heat_rofi_glc , ic, areas, sfrac, budget_local, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

budget_local(f_heat_latf,ic,ip) = -budget_local(f_watr_snow,ic,ip)*shr_const_latice
budget_local(f_heat_ioff,ic,ip) = -budget_local(f_watr_ioff,ic,ip)*shr_const_latice
Expand Down
Loading