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

implement ocean albedo calculation #92

Merged
merged 480 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
480 commits
Select commit Hold shift + click to select a range
cd6e6e2
set more env variables
jedwards4b Dec 27, 2022
281332b
try adding pio
jedwards4b Dec 27, 2022
eb44e55
merge to master
jedwards4b Dec 27, 2022
49e3034
add update_workflow pr
jedwards4b Dec 27, 2022
ed8df6f
Merge pull request #332 from jedwards4b/update_workflow
jedwards4b Dec 27, 2022
c094c34
fix naming of logs in multi-instance cases
jedwards4b Dec 27, 2022
39b2b11
Merge pull request #330 from jedwards4b/change_default_ocnatm_grid
jedwards4b Jan 3, 2023
415898a
add werror to extbuild
jedwards4b Jan 4, 2023
428a0e3
test the test
jedwards4b Jan 4, 2023
c082b2e
test the test
jedwards4b Jan 4, 2023
3ad71eb
remove unused variables
jedwards4b Jan 4, 2023
1093e8c
remove unused variables
jedwards4b Jan 4, 2023
cd01b7d
remove unused variables
jedwards4b Jan 4, 2023
4a5a960
remove unused variables
jedwards4b Jan 4, 2023
dc3fc73
remove unused variables
jedwards4b Jan 4, 2023
31c80fc
remove unused variables
jedwards4b Jan 4, 2023
044d348
remove unused variables
jedwards4b Jan 4, 2023
2ce324b
remove unused variables
jedwards4b Jan 4, 2023
5dd533d
remove unused variables
jedwards4b Jan 4, 2023
55317e2
remove unused variables
jedwards4b Jan 4, 2023
8c6feca
remove unused variables
jedwards4b Jan 4, 2023
c9de4ef
remove unused variables
jedwards4b Jan 4, 2023
fe1192f
remove unused variables
jedwards4b Jan 4, 2023
3398d0f
remove unused variables
jedwards4b Jan 4, 2023
971a71b
remove unused variables
jedwards4b Jan 4, 2023
364723c
remove unused variables
jedwards4b Jan 4, 2023
a4ed429
remove unused variables
jedwards4b Jan 4, 2023
31ba054
remove unused variables
jedwards4b Jan 4, 2023
e74da35
remove unused variables
jedwards4b Jan 4, 2023
bf4a69c
remove unused variables
jedwards4b Jan 4, 2023
e0e5c70
remove unused variables
jedwards4b Jan 4, 2023
e2a0a3d
remove unused variables
jedwards4b Jan 4, 2023
ad1e915
remove unused variables
jedwards4b Jan 4, 2023
c7395ef
remove unused variables
jedwards4b Jan 4, 2023
10ed107
remove unused variables
jedwards4b Jan 4, 2023
6cbb8d9
remove unused variables
jedwards4b Jan 4, 2023
c479c83
remove unused variables
jedwards4b Jan 4, 2023
4d9073d
no warnings now for cesm build
jedwards4b Jan 4, 2023
717e6d4
no warnings now for cesm build
jedwards4b Jan 4, 2023
90f918e
no warnings now for cesm build
jedwards4b Jan 4, 2023
b7b6960
no warnings now for cesm build
jedwards4b Jan 4, 2023
8f3b658
put ocnalb back
jedwards4b Jan 4, 2023
707ae2f
no warnings now for cesm build
jedwards4b Jan 4, 2023
7b36b52
no warnings now for cesm build
jedwards4b Jan 4, 2023
2ded3b5
pretty print is broken, leave it out
jedwards4b Jan 5, 2023
d81f8d0
initialize lprint
jedwards4b Jan 6, 2023
6d4c1ff
Merge pull request #333 from jedwards4b/add_werror_to_github_tests
jedwards4b Jan 9, 2023
000c0dc
replace use of master with main
jedwards4b Jan 9, 2023
8922799
gptl argument is still mastertask
jedwards4b Jan 9, 2023
357617f
smooth workflow
jedwards4b Jan 9, 2023
280d399
fix indentation
jedwards4b Jan 9, 2023
47cee68
fix indentation
jedwards4b Jan 9, 2023
29c69da
debug github action
jedwards4b Jan 9, 2023
55bcfe7
need xmllint
jedwards4b Jan 9, 2023
d158969
force build
jedwards4b Jan 9, 2023
098ea11
force buildd
jedwards4b Jan 9, 2023
1781ce8
force buildd
jedwards4b Jan 9, 2023
f806ac2
force buildd
jedwards4b Jan 9, 2023
6ad71d9
redo multiinstance support
jedwards4b Jan 9, 2023
00814cb
still debugging workflow
jedwards4b Jan 9, 2023
0ba7709
fix pio build
jedwards4b Jan 10, 2023
6de45f3
Merge remote-tracking branch 'escomp/main' into feature/updcmeps
DeniseWorthen Jan 10, 2023
9635f7c
fix pio build
jedwards4b Jan 10, 2023
bb86899
remove unused variables, add fix for coord units
DeniseWorthen Jan 10, 2023
764dbe4
fix pio build
jedwards4b Jan 10, 2023
a96e036
srt with cache
jedwards4b Jan 10, 2023
f50bd03
bld cprnc
jedwards4b Jan 10, 2023
419c788
add ubuntu-latest.cmake
jedwards4b Jan 10, 2023
5998250
finally working
jedwards4b Jan 10, 2023
606eb39
Merge pull request #336 from jedwards4b/master_to_main
jedwards4b Jan 10, 2023
d17cd89
move timer init function
jedwards4b Jan 11, 2023
72c8b2c
Merge branch 'main' into esmf_multidriver
jedwards4b Jan 11, 2023
c7fec3b
fix merge issues
jedwards4b Jan 11, 2023
dcdd214
Merge pull request #337 from jedwards4b/esmf_multidriver
jedwards4b Jan 11, 2023
5824c8c
Merge remote-tracking branch 'escomp/main' into feature/updcmeps
DeniseWorthen Jan 12, 2023
c6f23c3
Merge pull request #338 from DeniseWorthen/feature/updcmeps
jedwards4b Jan 12, 2023
9197fd2
updates to MEGAN namelist parser
fvitt Jan 18, 2023
9514b39
log MEGAN settings
fvitt Jan 19, 2023
690cf28
code clean up
fvitt Jan 19, 2023
1f06c58
Merge pull request #339 from fvitt/megan_expr
jedwards4b Jan 20, 2023
d331baa
Merge branch 'main' into pio_asyncio_in_cmeps
jedwards4b Jan 25, 2023
c2f8792
fix issues in merge
jedwards4b Jan 25, 2023
efa1e47
Merge pull request #325 from jedwards4b/pio_asyncio_in_cmeps
jedwards4b Jan 26, 2023
89e4ba6
changes needed for CDEP PR #213
Jan 30, 2023
70d6913
added new auxiliary stream for ocn2med
Jan 31, 2023
a0178b2
fix the multi instance initialization
jedwards4b Feb 1, 2023
96f1b73
Merge pull request #342 from jedwards4b/fix_multiinst_init
jedwards4b Feb 1, 2023
cb36640
Merge pull request #341 from mvertens/feature/cplhist_and_ocnimport
jedwards4b Feb 1, 2023
3a218b8
make xgrid default, handle main task for multidriver cases in esm_tim…
jedwards4b Feb 3, 2023
24522e3
changes for lightning coupling
fvitt Jun 24, 2022
62c15cd
Changed "atm_lightning_flash_freq" to "atm_provides_lightning"
fvitt Jul 13, 2022
6712c8c
rename Sa_lght as Sa_lightning
fvitt Jul 22, 2022
c8ed018
update to cmeps0.14.10
fvitt Feb 3, 2023
21074d9
Merge pull request #343 from jedwards4b/xgrid_and_maintask
jedwards4b Feb 3, 2023
895e623
Revert default aoflux_grid to ogrid
billsacks Mar 16, 2023
24ac1ba
Merge pull request #344 from billsacks/revert_xgrid
jedwards4b Mar 16, 2023
7ff0d3b
Remove unnecessary deallocate
billsacks Mar 22, 2023
97a4fe1
Merge pull request #345 from billsacks/remove_unnecessary_deallocate
jedwards4b Mar 22, 2023
18e5075
Add Jim's changes for new GPU options based on his branch: https://gi…
sjsprecious Mar 23, 2023
ebb0818
Add MAX_CPUTASKS_PER_GPU_NODE XML variable
sjsprecious Mar 23, 2023
72c1230
Remove default_values and valid_values for GPU_TYPE and GPU_OFFLOAD
sjsprecious Mar 24, 2023
195b86b
Merge remote-tracking branch 'origin/lightning_coupling' into cmeps0.…
fvitt Mar 27, 2023
5bb31fe
Send nitrogen deposition from atm to ocn
mnlevy1981 Mar 28, 2023
6cfd189
Clean up comments
mnlevy1981 Mar 28, 2023
5476eaa
A fix for #346 so that LND2ROF_FMAPNAME will be used
ekluzek Mar 29, 2023
c3e8e23
replace aux_cam with aux_cmeps in testlist
jedwards4b Apr 5, 2023
f191f85
Merge pull request #358 from jedwards4b/aux_cam-to-aux_cmeps
jedwards4b Apr 5, 2023
805d252
using copy_with_weights causes weights to be applied twice
jedwards4b Apr 5, 2023
b31366f
Merge pull request #349 from mnlevy1981/send_ndep_to_ocn
jedwards4b Apr 6, 2023
d8ddff5
Merge pull request #356 from mattldawson/develop-add-linked-libs
jedwards4b Apr 6, 2023
ac4d591
use updated error check and broadcast methods
fvitt Apr 7, 2023
4cf3e05
Added Fwxx_taux and Fwxx_tauy, based on Foxx_taux and Foxx_tauy
phall-brown Apr 12, 2023
e68d9bc
Trying simpler form of sharing Foxx to compwav
phall-brown Apr 14, 2023
eb18694
Turning off Foxx export to waves for testing
phall-brown Apr 14, 2023
22dbf82
Merge pull request #361 from ekluzek/lndrofmapfilefix
jedwards4b Apr 17, 2023
8cccca6
Merge branch 'main' into add_gpu_gust
sjsprecious Apr 17, 2023
c791efc
Adding Fwxx_taux to get wind stress to pass to wave model
phall-brown Apr 17, 2023
8db2449
Adding Fwxx_taux, using Foxx_taux as a model
phall-brown Apr 17, 2023
a599c2f
Comment out unnecessary line
phall-brown Apr 17, 2023
61cf378
fix issue with xgrid reproducibility
jedwards4b Apr 19, 2023
26f997c
Merge pull request #364 from jedwards4b/xgrid_reproducability_fix
jedwards4b Apr 19, 2023
f126b9f
update the minimum esmf version requirement
jedwards4b Apr 19, 2023
b4c3d9d
Merge pull request #347 from fvitt/cmeps0.14.18_lightning_coupling
jedwards4b Apr 20, 2023
263bebe
added wav/ice coupling
mvertens Apr 25, 2023
e50d27d
merged to cmeps0.14.24
mvertens Apr 25, 2023
17fa9d5
Adding custom field subroutine for waves with cesm, based on equivale…
phall-brown Apr 25, 2023
5712122
Passing So_ofrac to wav component
phall-brown Apr 25, 2023
e6451a4
Changing merge to Fwxx_taux to copy
phall-brown Apr 25, 2023
bdd726a
Fixed syntax of addmrg_to call for Fwxx_taux
phall-brown Apr 25, 2023
dec4bfb
Reverted earlier modifications
phall-brown Apr 25, 2023
d4b8441
Substituting Foxx_taux for Faox_taux
phall-brown Apr 25, 2023
d666f83
Revert "Substituting Foxx_taux for Faox_taux"
phall-brown Apr 26, 2023
3925710
Removed export of So_ofrac to wav component (unnecessary), and other …
phall-brown Apr 26, 2023
e142b2d
Cleaning up earlier, temporary code
phall-brown Apr 26, 2023
14bd205
Removed unnecessary fldList variable
phall-brown Apr 26, 2023
0bab18a
Merge pull request #1 from mvertens/feature/fix_wavice_coupling
mvertens Apr 26, 2023
abc5658
Adding stress from ice to Fwxx_taux
phall-brown Apr 26, 2023
cb585c5
Removed mrg_fracname from Fwxx merges
phall-brown Apr 26, 2023
95c5188
Added ifrac and ofrac to FBFrac for wave component
phall-brown Apr 26, 2023
5633ff2
Using ifrac and ofrac weights for Fbww merge
phall-brown Apr 26, 2023
a3c13d2
Updated comments to include wave component
phall-brown Apr 26, 2023
51f7601
updates to remove mct_mod and all other mct related files from share/
mvertens Apr 28, 2023
bcd23e4
Merge pull request #2 from mvertens/feature/remove_mct_from_share
mvertens Apr 28, 2023
962646a
improves the readability of salt budget
jedwards4b Apr 28, 2023
f80e7d7
undo accidental commit
jedwards4b Apr 28, 2023
68baf9f
Added new fractions (ifrac, ofrac) for wave component
phall-brown Apr 28, 2023
04296bd
Added compwav declaration to med_fraction_set subroutine
phall-brown Apr 28, 2023
5bc4403
Corrected two typos where compice was being passed instead of compwav
phall-brown Apr 28, 2023
69317cb
Removing previous additions for wavcomp
phall-brown Apr 29, 2023
baaf12c
Removing stress from compice from Fwxx_taux
phall-brown Apr 29, 2023
24f419c
turn off HierarchyProtocol, not used in cesm this is a memory and ini…
jedwards4b Apr 29, 2023
9c43424
correct comment delimiter
jedwards4b May 1, 2023
fcc45ff
Merge pull request #369 from jedwards4b/Turn_OFF_HierarchyProtocol
jedwards4b May 1, 2023
cf7ec4f
Merge pull request #368 from jedwards4b/improve_diag_salt_format
jedwards4b May 1, 2023
16d7223
removed unused variable
mvertens May 5, 2023
dbfb31a
removed unneeded xml variables
mvertens May 5, 2023
76bba43
Merge pull request #3 from mvertens/feature/remove_uneeded_xmlvars
mvertens May 5, 2023
7bb5053
check for nans
mvertens May 5, 2023
284137f
Merge pull request #376 from NorESMhub/noresm
jedwards4b May 5, 2023
9ee4d83
refactored logic
mvertens May 5, 2023
3ad7f1f
updated med_diag_mod with recent changes from escomp
mvertens May 5, 2023
311582c
This fails to enable writing of 'daily' files from forecasts shorter …
kdraeder May 6, 2023
0d2a0c8
Merge branch 'aux_cpl_hist_daily' of github.com:kdraeder/CMEPS into a…
kdraeder May 6, 2023
83bba42
updated counters for nans
mvertens May 8, 2023
0b59db6
consistent alias of use statements for check_for_nans
mvertens May 8, 2023
64439f7
fixed compilation bug
mvertens May 8, 2023
5e02def
add ability to compile without needed shr_infnan - as is the case for…
mvertens May 8, 2023
6776c24
Merge remote-tracking branch 'ESCOMP/main' into feature/updcmeps
DeniseWorthen May 9, 2023
f1dedf5
Changed Fwxx_taux merge to use 'wfrac'
phall-brown May 9, 2023
22b6278
Merge pull request #377 from mvertens/feature/check_for_nans
jedwards4b May 10, 2023
2685626
Adding merge to wave component Fwxx_taux based on Foxx_taux
phall-brown May 10, 2023
9d4e81c
Fixed a compocn that should have been compwav
phall-brown May 10, 2023
3ca2795
Adding ifrac and ofrac to fraclist_w
phall-brown May 10, 2023
7ac3ca9
make history_n integer variables
jedwards4b May 10, 2023
b22ae22
sames should be samples
jedwards4b May 10, 2023
cca94e4
wopen should return rc
jedwards4b May 10, 2023
66c0d0f
Merge remote-tracking branch 'ESCOMP/main' into feature/updcmeps
DeniseWorthen May 11, 2023
a936f7e
Merge pull request #365 from jedwards4b/update_esmf_min_version
jedwards4b May 11, 2023
a316646
major refactor of med_io_mod to handle multiple files
jedwards4b May 11, 2023
4490cff
ntperfile should be type integer
jedwards4b May 11, 2023
57e1970
remove unused variable
jedwards4b May 11, 2023
1aab35a
Merge pull request #1 from jedwards4b/history_n
kdraeder May 11, 2023
5d7470d
CESM_COUPLED should be CESMCOUPLED
jedwards4b May 11, 2023
b60c9d7
Candidate fixes of descriptions and comments
kdraeder May 11, 2023
106a99d
Merge pull request #380 from jedwards4b/cesmcoupledfix
jedwards4b May 11, 2023
42a5fd5
remove dead code
jedwards4b May 11, 2023
fd9151a
Merge remote-tracking branch 'ESCOMP/main' into feature/updcmeps
DeniseWorthen May 12, 2023
ebc63bb
allow ufs to use check nan feature
DeniseWorthen May 12, 2023
a25075d
fix comments
DeniseWorthen May 12, 2023
96206b6
adjust indentation
jedwards4b May 12, 2023
f2cbf27
Merge pull request #378 from kdraeder/aux_cpl_hist_daily
jedwards4b May 15, 2023
fd9872f
Merge remote-tracking branch 'ESCOMP/main' into feature/updcmeps
DeniseWorthen May 15, 2023
a587023
updates for new stresses sent to wave
May 16, 2023
3dbbda3
merged to head of escomp/main
May 16, 2023
ca8ca8b
udpates needed to pass taux and tauxy to wave
May 16, 2023
d64ffe9
fixed compile bugs
May 16, 2023
488b8d9
fixed compile bugs
May 16, 2023
09d1e08
Merge pull request #382 from mvertens/feature/theorywaves
jedwards4b May 17, 2023
f568cfc
Merge remote-tracking branch 'ESCOMP/main' into feature/updcmeps
DeniseWorthen May 17, 2023
c3e57f4
make this an input that can be toggled in user_nl_cpl
jedwards4b May 18, 2023
d84c9b3
expand description
jedwards4b May 18, 2023
a753571
make default .true. add log message
jedwards4b May 19, 2023
0ff2afe
resolve circular dependancy
jedwards4b May 19, 2023
689d674
remove CESMCOUPLED cppdef
jedwards4b May 19, 2023
b6ba816
pass the strict ext build test
jedwards4b May 19, 2023
79cf208
rework based on pr review
jedwards4b May 19, 2023
92ace68
fix yaml syntax
jedwards4b May 19, 2023
60b9f19
fix ext versions
jedwards4b May 19, 2023
0b862b9
fix ext versions
jedwards4b May 19, 2023
5b26040
add ispresent and isset
jedwards4b May 23, 2023
dabe6d3
make xgrid default (should have been in alpha12c) and fix sw flux to …
jedwards4b May 23, 2023
e94015a
slight change in logic
jedwards4b May 23, 2023
6a642a6
get ufs to work w/ ocnalb
DeniseWorthen May 24, 2023
f174edd
fix src path for cdeps
jedwards4b May 24, 2023
b7bc64e
Merge pull request #387 from jedwards4b/fix_aoflux_and_swtoocn
jedwards4b May 24, 2023
9817b91
cdeps path again
jedwards4b May 24, 2023
371d752
cdeps path again
jedwards4b May 24, 2023
8f59dba
try building ext with cdeps share
jedwards4b May 24, 2023
06b79ff
Merge pull request #386 from jedwards4b/add_check_for_nans_config_option
jedwards4b May 24, 2023
a34f315
Merge remote-tracking branch 'ESCOMP/main' into feature/updcmeps
DeniseWorthen May 24, 2023
a7a6dcb
testing indicates we are not yet ready for xgrid
jedwards4b May 26, 2023
5ad45de
Merge pull request #388 from jedwards4b/revert_aoflux_to_ogrid
jedwards4b May 26, 2023
d75d75e
remove file accidentally committed
DeniseWorthen May 26, 2023
a4d615e
add config variables for ufs use case
DeniseWorthen May 30, 2023
19042cf
Merge branch 'feature/updcmeps' into feature/fixsw
DeniseWorthen May 31, 2023
b6fd22c
add configuration options for albedo calcs
DeniseWorthen Jun 12, 2023
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
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
b23f6b9
Merge branch 'emc/develop' into feature/fixsw
DeniseWorthen Aug 15, 2023
4edb1cc
add fioi_swpen as an advertised field
DeniseWorthen Aug 16, 2023
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
11 changes: 6 additions & 5 deletions .github/workflows/srt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
CPPFLAGS: "-I/usr/include -I/usr/local/include "
LDFLAGS: "-L/usr/lib/x86_64-linux-gnu -lnetcdf -lnetcdff -lpnetcdf"
# Versions of all dependencies can be updated here
ESMF_VERSION: v8.4.0
PARALLELIO_VERSION: pio2_5_10
ESMF_VERSION: v8.5.0
PARALLELIO_VERSION: pio2_6_0
CIME_MODEL: cesm
CIME_DRIVER: nuopc
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -153,6 +153,7 @@ jobs:
mkdir -p $HOME/cesm/scratch
mkdir -p $HOME/cesm/inputdata
pushd $GITHUB_WORKSPACE/cesm/cime/CIME/tests
export SRCROOT=$GITHUB_WORKSPACE/cesm/
export CIME_TEST_PLATFORM=ubuntu-latest
export PIO_INCDIR=$HOME/pio/include
export PIO_LIBDIR=$HOME/pio/lib
Expand All @@ -175,6 +176,6 @@ jobs:
popd
# the following can be used by developers to login to the github server in case of errors
# see https://github.com/marketplace/actions/debugging-with-tmate for further details
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
42 changes: 40 additions & 2 deletions cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,34 @@
If TRUE, the component libraries are always built with OpenMP capability.</desc>
</entry>

<entry id="GPU_TYPE">
<type>char</type>
<valid_values></valid_values>
<default_value></default_value>
<group>build_def</group>
<file>env_build.xml</file>
<desc>If set will compile and submit with this gpu type enabled </desc>
</entry>

<entry id="GPU_OFFLOAD">
<type>char</type>
<valid_values></valid_values>
<default_value></default_value>
<group>build_def</group>
<file>env_build.xml</file>
<desc>If set will compile and submit with this gpu offload method enabled </desc>
</entry>

<entry id="MPI_GPU_WRAPPER_SCRIPT">
<type>char</type>
<valid_values></valid_values>
<default_value></default_value>
<group>build_def</group>
<file>env_build.xml</file>
<desc>If set will attach this script to the MPI run command, mapping
different MPI ranks to different GPUs within the same compute node</desc>
</entry>

<entry id="SMP_PRESENT">
<type>logical</type>
<valid_values>TRUE,FALSE</valid_values>
Expand Down Expand Up @@ -1798,12 +1826,22 @@
<desc>pes or cores per node for accounting purposes </desc>
</entry>

<entry id="MAX_CPUTASKS_PER_GPU_NODE">
<type>integer</type>
<default_value>0</default_value>
<values>
<value compiler="nvhpc">1</value>
</values>
<group>mach_pes_last</group>
<file>env_mach_pes.xml</file>
<desc> Number of CPU cores per GPU node used for simulation </desc>
</entry>

<entry id="NGPUS_PER_NODE">
<type>integer</type>
<default_value>0</default_value>
<values>
<value compiler="pgi-gpu">1</value>
<value compiler="nvhpc-gpu">1</value>
<value compiler="nvhpc">1</value>
</values>
<group>mach_pes</group>
<file>env_mach_pes.xml</file>
Expand Down
2 changes: 1 addition & 1 deletion cime_config/namelist_definition_drv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@
default: ogrid
</desc>
<values>
<value>xgrid</value>
<value>ogrid</value>
</values>
</entry>
<entry id="ocn_surface_flux_scheme">
Expand Down
4 changes: 2 additions & 2 deletions mediator/esmFldsExchange_cesm_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
! liquid from river and possibly flood from river to ocean
if (fldchk(is_local%wrap%FBImp(comprof, comprof), 'Forr_rofl' , rc=rc)) then
if (trim(rof2ocn_liq_rmap) == 'unset') then
call addmap_from(comprof, 'Forr_rofl', compocn, mapconsd, 'none', 'unset')
call addmap_from(comprof, 'Forr_rofl', compocn, mapconsd, 'one', 'unset')
else
call addmap_from(comprof, 'Forr_rofl', compocn, map_rof2ocn_liq, 'none', rof2ocn_liq_rmap)
end if
Expand All @@ -2182,7 +2182,7 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
! ice from river to ocean
if (fldchk(is_local%wrap%FBImp(comprof, comprof), 'Forr_rofi' , rc=rc)) then
if (trim(rof2ocn_ice_rmap) == 'unset') then
call addmap_from(comprof, 'Forr_rofi', compocn, mapconsd, 'none', 'unset')
call addmap_from(comprof, 'Forr_rofi', compocn, mapconsd, 'one', 'unset')
else
call addmap_from(comprof, 'Forr_rofi', compocn, map_rof2ocn_ice, 'none', rof2ocn_ice_rmap)
end if
Expand Down
20 changes: 18 additions & 2 deletions mediator/esmFldsExchange_nems_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ subroutine esmFldsExchange_nems(gcomp, phase, rc)
use esmFlds , only : addmap_from => med_fldList_addmap_from
use esmFlds , only : addfld_aoflux => med_fldList_addfld_aoflux
use esmFlds , only : addmap_aoflux => med_fldList_addmap_aoflux
use esmFlds , only : addfld_ocnalb => med_fldList_addfld_ocnalb
use esmFlds , only : addmap_ocnalb => med_fldList_addmap_ocnalb

! input/output parameters:
type(ESMF_GridComp) :: gcomp
Expand Down Expand Up @@ -167,9 +169,12 @@ subroutine esmFldsExchange_nems(gcomp, phase, rc)
deallocate(flds)
end if

! TODO: unused, but required to maintain B4B repro for mediator restarts; should be removed
! Advertise the ocean albedos. These are not sent to the ATM in UFS.
if (phase == 'advertise') then
call addfld_from(compice, 'mean_sw_pen_to_ocn')
call addfld_ocnalb('So_avsdr')
call addfld_ocnalb('So_avsdf')
call addfld_ocnalb('So_anidr')
call addfld_ocnalb('So_anidf')
end if

!=====================================================================
Expand Down Expand Up @@ -329,6 +334,17 @@ subroutine esmFldsExchange_nems(gcomp, phase, rc)
end if
end if

! to ocn: swpen thru ice w/o bands
if (phase == 'advertise') then
if (is_local%wrap%comp_present(compice) .and. is_local%wrap%comp_present(compocn)) then
call addfld_from(compice, 'Fioi_swpen')
end if
else
if (fldchk(is_local%wrap%FBImp(compice,compice), 'Fioi_swpen', rc=rc)) then
call addmap_from(compice, 'Fioi_swpen', compocn, mapfcopy, 'unset', 'unset')
end if
end if

! to ocn: from sw from atm and sw net from ice (custom merge in med_phases_prep_ocn)
! - downward direct near-infrared ("n" or "i") incident solar radiation
! - downward diffuse near-infrared ("n" or "i") incident solar radiation
Expand Down
13 changes: 6 additions & 7 deletions mediator/med.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,8 @@ subroutine DataInitialize(gcomp, rc)
call esmFldsExchange_cesm(gcomp, phase='initialize', rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
else if (trim(coupling_mode(1:4)) == 'nems') then
call esmFldsExchange_nems(gcomp, phase='initialize', rc=rc)
call esmFldsExchange_nems(gcomp, phase='initialize', rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
else if (trim(coupling_mode) == 'hafs') then
call esmFldsExchange_hafs(gcomp, phase='initialize', rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
Expand Down Expand Up @@ -1939,14 +1940,12 @@ subroutine DataInitialize(gcomp, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

!----------------------------------------------------------
! Initialize ocean albedos (this is needed for cesm and hafs)
! Initialize ocean albedos
!----------------------------------------------------------

if (trim(coupling_mode(1:5)) == 'cesm_') then
if (is_local%wrap%comp_present(compocn) .or. is_local%wrap%comp_present(compatm)) then
call med_phases_ocnalb_run(gcomp, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
end if
if (is_local%wrap%comp_present(compocn) .or. is_local%wrap%comp_present(compatm)) then
call med_phases_ocnalb_run(gcomp, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
end if

!---------------------------------------
Expand Down
1 change: 0 additions & 1 deletion mediator/med_internalstate_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ subroutine med_internalstate_init(gcomp, rc)
end do
end if
is_local%wrap%num_icesheets = num_icesheets

call NUOPC_CompAttributeGet(gcomp, name='mediator_present', value=cvalue, isPresent=isPresent, isSet=isSet, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
if (isPresent .and. isSet) then
Expand Down
6 changes: 3 additions & 3 deletions mediator/med_io_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module med_io_mod
character(*),parameter :: prefix = "med_io_"
character(*),parameter :: modName = "(med_io_mod) "
character(*),parameter :: version = "cmeps0"

integer :: pio_iotype
integer :: pio_ioformat
type(iosystem_desc_t), pointer :: io_subsystem
Expand Down Expand Up @@ -1738,8 +1738,8 @@ subroutine med_io_read_init_iodesc(FB, name1, pioid, iodesc, rc)

deallocate(minIndexPTile, maxIndexPTile)
else
if(maintask) write(logunit,*) trim(subname),' ERROR: '//trim(name1)//' is not present, aborting '
call ESMF_LogWrite(trim(subname)//' ERROR: '//trim(name1)//' is not present, aborting ', ESMF_LOGMSG_INFO)
if(maintask) write(logunit,'(a)') trim(subname)//' ERROR: '//trim(name1)//' is not present, aborting '
call ESMF_LogWrite(trim(subname)//' ERROR: '//trim(name1)//' is not present, aborting ', ESMF_LOGMSG_ERROR)
rc = ESMF_FAILURE
end if ! end if rcode check

Expand Down
22 changes: 12 additions & 10 deletions mediator/med_map_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ subroutine med_map_RouteHandles_initfrom_esmflds(gcomp, flds_scalar_name, llogun
type(ESMF_Mesh) :: mesh_dst
type(med_fldlist_type), pointer :: FldListFr
type(med_fldlist_entry_type), pointer :: fldptr
character(len=*), parameter :: subname=' (module_med_map: RouteHandles_init) '
character(len=*), parameter :: subname=' (med_map_mod: RouteHandles_init) '
!-----------------------------------------------------------

call t_startf('MED:'//subname)
Expand Down Expand Up @@ -259,7 +259,8 @@ subroutine med_map_RouteHandles_initfrom_esmflds(gcomp, flds_scalar_name, llogun
if (chkerr(rc,__LINE__,u_FILE_u)) return
if (maintask) then
write(logunit,'(a)') trim(subname)//' created field_NormOne for '&
//compname(n1)//'->'//compname(n2)//' with mapping '//trim(mapnames(mapindex))
//trim(compname(n1))//'->'//trim(compname(n2))//' with mapping '&
//trim(mapnames(mapindex))
end if
end if
end do ! end of loop over map_indiex mappers
Expand Down Expand Up @@ -304,7 +305,7 @@ subroutine med_map_routehandles_initfrom_fieldbundle(n1, n2, FBsrc, FBdst, mapin
! local variables
type(ESMF_Field) :: fldsrc
type(ESMF_Field) :: flddst
character(len=*), parameter :: subname=' (module_MED_map:med_map_routehandles_initfrom_fieldbundle) '
character(len=*), parameter :: subname=' (med_map_mod:med_map_routehandles_initfrom_fieldbundle) '
!---------------------------------------------

rc = ESMF_SUCCESS
Expand Down Expand Up @@ -653,7 +654,7 @@ logical function med_map_RH_is_created_RH3d(RHs,n1,n2,mapindex,rc)
integer , intent(out) :: rc

! local variables
character(len=*), parameter :: subname=' (module_MED_map:med_map_RH_is_created_RH3d) '
character(len=*), parameter :: subname=' (med_map_mod:med_map_RH_is_created_RH3d) '
!-----------------------------------------------------------

rc = ESMF_SUCCESS
Expand All @@ -678,7 +679,7 @@ logical function med_map_RH_is_created_RH1d(RHs,mapindex,rc)
! local variables
integer :: rc1, rc2
logical :: mapexists
character(len=*), parameter :: subname=' (module_MED_map:med_map_RH_is_created_RH1d) '
character(len=*), parameter :: subname=' (med_map_mod:med_map_RH_is_created_RH1d) '
!-----------------------------------------------------------

rc = ESMF_SUCCESS
Expand Down Expand Up @@ -750,7 +751,7 @@ subroutine med_map_packed_field_create(destcomp, flds_scalar_name, &
character(CL), allocatable :: fieldNameList(:)
character(CS) :: mapnorm_mapindex
character(len=CX) :: tmpstr
character(len=*), parameter :: subname=' (module_MED_map:med_packed_field_create) '
character(len=*), parameter :: subname=' (med_map_mod:med_packed_field_create) '
!-----------------------------------------------------------

rc = ESMF_SUCCESS
Expand Down Expand Up @@ -818,6 +819,7 @@ subroutine med_map_packed_field_create(destcomp, flds_scalar_name, &
//' '//trim(fieldnamelist(nf))
call ESMF_LogWrite(trim(tmpstr), ESMF_LOGMSG_INFO)
else
!if(rof_name .ne. 'xrof' .and. compname(destcomp) .ne. 'ocn') then
if (mapnorm_mapindex /= packed_data(mapindex)%mapnorm) then
write(tmpstr,*)'Map type '//trim(mapnames(mapindex)) &
//', destcomp '//trim(compname(destcomp)) &
Expand Down Expand Up @@ -953,7 +955,7 @@ subroutine med_map_field_packed(FBSrc, FBDst, FBFracSrc, field_normOne, packed_d
type(ESMF_Field), pointer :: fieldlist_dst(:)
real(r8), pointer :: data_norm(:)
real(r8), pointer :: data_dst(:,:)
character(len=*), parameter :: subname=' (module_MED_map:med_map_field_packed) '
character(len=*), parameter :: subname=' (med_map_mod:med_map_field_packed) '
!-----------------------------------------------------------

call t_startf('MED:'//subname)
Expand Down Expand Up @@ -1165,7 +1167,7 @@ subroutine med_map_field_normalized(field_src, field_dst, routehandles, maptype,
integer :: ungriddedUBound(1) ! currently the size must equal 1 for rank 2 fields
integer :: lsize_src
integer :: lsize_dst
character(len=*), parameter :: subname=' (module_MED_map:med_map_field_normalized) '
character(len=*), parameter :: subname=' (med_map_mod:med_map_field_normalized) '
!-----------------------------------------------------------

rc = ESMF_SUCCESS
Expand Down Expand Up @@ -1278,7 +1280,7 @@ subroutine med_map_field(field_src, field_dst, routehandles, maptype, fldname, r
logical :: checkflag = .false.
character(len=CS) :: lfldname
real(ESMF_KIND_R8), parameter :: fillValue = 9.99e20_ESMF_KIND_R8
character(len=*), parameter :: subname='(module_MED_map:med_map_field) '
character(len=*), parameter :: subname='(med_map_mod:med_map_field) '
!---------------------------------------------------

rc = ESMF_SUCCESS
Expand Down Expand Up @@ -1381,7 +1383,7 @@ subroutine med_map_uv_cart3d(FBsrc, FBdst, routehandles, mapindex, rc)
integer :: spatialDim
real(r8), parameter :: deg2rad = shr_const_pi/180.0_R8 ! deg to rads
logical :: first_time = .true.
character(len=*), parameter :: subname=' (module_MED_map:med_map_uv_cart3d) '
character(len=*), parameter :: subname=' (med_map_mod:med_map_uv_cart3d) '
!-------------------------------------------------------------------------------

rc = ESMF_SUCCESS
Expand Down
7 changes: 5 additions & 2 deletions mediator/med_methods_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,10 @@ subroutine med_methods_FB_accum(FBout, FBin, copy, rc)
call med_methods_Field_GetFldPtr(lfield, fldptr1=dataptro1, fldptr2=dataptro2, rank=lranko, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

if (lranki == 1 .and. lranko == 1) then
if (lranki == 0 .and. lranko == 0) then
! do nothing
call ESMF_LogWrite(trim(subname)//": Both ranki and ranko are 0", ESMF_LOGMSG_INFO)
elseif (lranki == 1 .and. lranko == 1) then

if (.not.med_methods_FieldPtr_Compare(dataPtro1, dataPtri1, subname, rc)) then
call ESMF_LogWrite(trim(subname)//": ERROR in dataPtr1 size ", ESMF_LOGMSG_ERROR)
Expand Down Expand Up @@ -1397,7 +1400,7 @@ subroutine med_methods_FB_accum(FBout, FBin, copy, rc)
else

write(msgString,'(a,2i8)') trim(subname)//": ranki, ranko = ",lranki,lranko
call ESMF_LogWrite(trim(msgString), ESMF_LOGMSG_INFO)
call ESMF_LogWrite(trim(msgString), ESMF_LOGMSG_ERROR)
call ESMF_LogWrite(trim(subname)//": ERROR ranki ranko not supported "//trim(lfieldnamelist(n)), &
ESMF_LOGMSG_ERROR)
rc = ESMF_FAILURE
Expand Down
2 changes: 1 addition & 1 deletion mediator/med_phases_history_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module med_phases_history_mod
use med_io_mod , only : med_io_write, med_io_wopen, med_io_enddef, med_io_close
use perf_mod , only : t_startf, t_stopf
use pio , only : file_desc_t

implicit none
private

Expand Down
Loading