Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
e187b54
Add mpas-ocean and seaice to the components
Aug 27, 2022
f13e16e
CMEPS Sync with Trigrid capability (#122)
DeniseWorthen Jul 26, 2024
663554e
Sync with ESCOMP; fix aux history files for use_float=.true. (#124)
DeniseWorthen Sep 3, 2024
dc977bc
add fire behavior tendencies to ufs ccpp (#117)
danrosen25 Sep 17, 2024
24e9eed
Enable Data Atmosphere Coupling of GFDL Land Model (#113)
JustinPerket Oct 10, 2024
55576eb
Flexible restart write times (restart_fh) (#125)
NickSzapiro-NOAA Dec 11, 2024
b5d1cc1
Sync w/ latest ESCOMP/main (#129)
DeniseWorthen Dec 16, 2024
191214b
Merge remote-tracking branch 'ESCOMP/main' into feature/ufs_restartfh
DeniseWorthen Dec 18, 2024
e3a4803
protect write_restartfh w/ CESM ifdef
DeniseWorthen Dec 18, 2024
cdbed6c
use redist if atm and lnd has same grid (#126)
uturuncoglu Jan 28, 2025
b81860e
Merge branch 'main' into feature/ufs_restartfh
jedwards4b Mar 13, 2025
11d0522
update externals for extbuild
jedwards4b Mar 13, 2025
ab2329d
Keep glc-derived runoff as separate fields to ocn if possible
billsacks Mar 18, 2025
de95504
add connection between xml and fortran
jedwards4b Mar 19, 2025
dcd0f47
an additional change required
jedwards4b Mar 19, 2025
e203956
Merge pull request #546 from jedwards4b/pass_version_to_fortran
jedwards4b Mar 19, 2025
e3d9383
Merge remote-tracking branch 'ESCOMP/main' into feature/ufs_restartfh
DeniseWorthen Mar 20, 2025
bfd40ad
update cdeps tag in github workflow
jedwards4b Mar 21, 2025
57ed117
update cdeps external in github workflow
jedwards4b Mar 21, 2025
d892028
Merge pull request #522 from DeniseWorthen/feature/ufs_restartfh
jedwards4b Mar 21, 2025
a283c1f
add ATM_NCPL entry for POLARCAP
adamrher Mar 22, 2025
99de402
explicitly create RHs for uv3d mapping
DeniseWorthen Mar 26, 2025
80cdb4a
remove tab, fix typo
DeniseWorthen Mar 26, 2025
b807d19
Merge pull request #550 from adamrher/cmeps-polarcap
jedwards4b Mar 26, 2025
77e1c10
Merge pull request #552 from DeniseWorthen/feature/addRHuv3dmapping
jedwards4b Mar 27, 2025
72f8b4c
try updating some externals
jedwards4b Mar 27, 2025
46ca4c8
Sync ESCOMP/CMEPS (#135)
DeniseWorthen Mar 27, 2025
a5e7ab4
allow years up to 999999
jedwards4b Mar 27, 2025
9aa34f4
change from <= to .le.
jedwards4b Mar 27, 2025
eba8a68
update pio hash in github workflow
jedwards4b Mar 28, 2025
65ccfe5
Merge pull request #554 from jedwards4b/allow_yr_beyond_9999
jedwards4b Mar 31, 2025
655c342
Add glc-derived runoff fluxes and associated heat fluxes to budgets
billsacks Apr 9, 2025
7eb2994
Merge pull request #547 from billsacks/separate_glc_rof_fields
jedwards4b Apr 10, 2025
45e055d
Make check of ROF_NCPL pass by updating default
kdraeder Apr 10, 2025
17810f3
megan coefs fix
fvitt Apr 10, 2025
a086e92
fix st_archive issues with timestamped rpointer files
jedwards4b Apr 14, 2025
34c03b7
Improve description of histaux_l2x1yrg
billsacks Apr 18, 2025
00cf7e0
add log fh for cmeps restart writing (#140)
DeniseWorthen Apr 21, 2025
dfa3cb7
Added code to make st-archive handle DART files
kdraeder Apr 22, 2025
d8f47f2
Merge pull request #559 from billsacks/doc_histaux
jedwards4b Apr 23, 2025
dfe357e
Merge pull request #558 from jedwards4b/st_archive_fix
jedwards4b Apr 23, 2025
c13a393
add missing if-statement
DeniseWorthen Apr 25, 2025
b7b50a6
Merge pull request #557 from fvitt/megan_coefs_fix
jedwards4b Apr 30, 2025
3ebb745
Merge pull request #562 from DeniseWorthen/bugfix/consf_uv3d
jedwards4b Apr 30, 2025
319042c
Merge pull request #556 from kdraeder/dflt_ROF_NCPL
jedwards4b Apr 30, 2025
89aaadb
add USE_FTORCH variable
jedwards4b May 2, 2025
a2833b0
Implement vector remapping from ATM->ICE,OCN and bilinear mapping of …
DeniseWorthen May 5, 2025
3b69aea
add TORCH_DIR xml variable
jedwards4b May 6, 2025
a1f511d
Merge branch 'ESCOMP:main' into cmeps_st-arch_dart
kdraeder May 6, 2025
0a246bb
update for external compatibilty
jedwards4b May 8, 2025
a20f5e3
Merge remote-tracking branch 'mydev/ftorch_branch_1355710f' into HEAD
jedwards4b May 12, 2025
21c2803
add FTorch support
jedwards4b May 12, 2025
b72438e
Merge pull request #565 from jedwards4b/cmeps1.0.47_ftorch
jedwards4b May 12, 2025
add92e9
Merge tag ESCOMP/CMEPS 'cmeps0.13.68' into 'eworg_mpaso_mpassi'
May 13, 2025
5c3a840
Compatability patch before merging 'cmeps0.14.2' for esmFldsExchange_…
Apr 28, 2023
3f20fc7
Merge tag ESCOMP/CMEPS 'cmeps0.14.45' into 'eworg_mpaso_mpassi'
May 13, 2025
c057001
Configure ATM_NCPL based on mpasa grids used
May 13, 2025
d7cf7d6
Duplicate mpasa grid NCPL entries for _MPAS compsets
May 17, 2024
1d7b135
Merge tag ESCOMP/CMEPS 'cmeps1.0.16' into 'eworg_mpaso_mpassi'
May 13, 2025
be66c78
MPAS-Ocean update
dazlich Oct 7, 2024
decbf4e
Typo fix
dazlich Oct 9, 2024
ce2f732
Merge tag ESCOMP/CMEPS 'cmeps1.0.33' into 'eworg_mpaso_mpassi'
May 13, 2025
34722f5
Merge pull request #564 from kdraeder/cmeps_st-arch_dart
jedwards4b May 13, 2025
0524c14
test push of minor revision change
jedwards4b May 14, 2025
f1c0df1
trigger minor version change due to shr_megan_mod api change in cmeps…
jedwards4b May 14, 2025
57e5026
revert change in bumpversion
jedwards4b May 14, 2025
e44ab51
Merge tag 'cmeps1.0.47' into branch 'eworg_mpasso_mpassi'
Jun 11, 2025
5209116
Review request, guard field exchanges added by MPAS-O and MPAS-SI
Jun 18, 2025
832a085
Reveiw req., consolidate exchange MPAS guards
Jun 18, 2025
dcd1c7c
Merge branch 'main' into eworg_mpaso_mpassi
jedwards4b Jun 18, 2025
c43077c
Merge tag 'cmeps1.1.1'
adamrher Jun 18, 2025
a28d899
add ATM_NCPL entry for NATLx8 grid
adamrher Jun 18, 2025
bd3ff83
Merge pull request #570 from adamrher/cmeps-natl
jedwards4b Jun 18, 2025
643d2d3
add unit fix for uv3d mapping
DeniseWorthen Jun 25, 2025
e06d851
Merge pull request #572 from DeniseWorthen/feature/fix_uv3dunits
jedwards4b Jul 7, 2025
b066036
Merge pull request #569 from gdicker1/eworg_mpaso_mpassi
jedwards4b Jul 7, 2025
ae6db21
if maintask call log_restart_fh (#143)
NickSzapiro-NOAA Jul 9, 2025
e0ae5ad
add a testmod to test the interim restart feature, this mod requires …
jedwards4b Jul 25, 2025
aeb8108
Merge pull request #576 from jedwards4b/add_interim_restart_testmod
jedwards4b Jul 25, 2025
a4533b2
add cirrus and casper gpu types
sjsprecious Jul 29, 2025
40ae33c
Switch to bilinear mapping for global DATM configurations (#142)
DeniseWorthen Jul 29, 2025
0c0d8ff
Put mpasa ATM_NCPL lines next to other resolution-dependent values
Jul 30, 2025
1b8d1d2
Adjust for _MPAS compsets using NCPL_BASE_PERIOD=hour
Jul 30, 2025
50b7c75
Update CMEPS for 2-way ocean-wave coupling in HAFS (#133)
binli2337 Aug 11, 2025
db0557d
Adding Alok's fixed file for the fco2 land flux mediation
maritsandstad Aug 11, 2025
b1d5ad0
Merge remote-tracking branch 'ESCOMP/main' into feature/sync_ufs
DeniseWorthen Aug 12, 2025
1280f5e
update cdeps_version
DeniseWorthen Aug 12, 2025
903c482
Merge pull request #581 from DeniseWorthen/feature/sync_ufs
jedwards4b Aug 13, 2025
3612d69
Merge pull request #578 from gdicker1/update_ncpl_mpascompsets
jedwards4b Aug 13, 2025
62db914
Merge pull request #579 from sjsprecious/add_cirrus_gpu
jedwards4b Aug 13, 2025
c9790be
add the err test to those avoiding end of run restarts
jedwards4b Aug 13, 2025
289d1f7
Merge pull request #582 from jedwards4b/add_err_to_tests_avoiding_eor…
jedwards4b Aug 13, 2025
d800130
Merge pull request #580 from mvdebolskiy/fix/fco2lnd
jedwards4b Aug 14, 2025
22f1dce
moves liblist to driver buildnml making cime more generic
jedwards4b Aug 20, 2025
e4030eb
allow for other components to modify CASE_SUPPORT_LIBRARIES
jedwards4b Aug 21, 2025
32d3d9d
add comment
jedwards4b Aug 22, 2025
d76c101
Make wave ice coupling default
dabail10 Aug 22, 2025
535a038
Merge pull request #585 from dabail10/wavice3
jedwards4b Aug 26, 2025
5536f78
move defaults to xml
jedwards4b Aug 26, 2025
dbf5588
clean up;
jedwards4b Aug 26, 2025
be5903f
fix for nag formatting error
jedwards4b Aug 26, 2025
60034eb
Merge pull request #586 from jedwards4b/nag_format_fix
jedwards4b Aug 27, 2025
4161f31
update documentation
jedwards4b Aug 28, 2025
60a8e23
reponse to copilot review
jedwards4b Aug 28, 2025
10bceb1
Make qsat calculation consistent with CAM
jiang-zhu Aug 29, 2025
b875259
Merge pull request #584 from jedwards4b/move_liblist_to_driver
jedwards4b Aug 29, 2025
6d83bcc
add artifact to github testing
jedwards4b Aug 29, 2025
f9e9dc1
correct path to artifacts
jedwards4b Aug 29, 2025
1ccf4fa
correct path to artifacts
jedwards4b Aug 29, 2025
2118e8b
correct path to artifacts
jedwards4b Aug 29, 2025
fac1d08
correct path to artifacts
jedwards4b Aug 29, 2025
90e73f5
correct path to artifacts
jedwards4b Aug 29, 2025
fd90f95
correct path to artifacts
jedwards4b Aug 29, 2025
926f244
correct path to artifacts
jedwards4b Aug 29, 2025
2f469b0
remove share calculation from unused diurnal subroutine
jedwards4b Aug 29, 2025
286ddaf
Merge pull request #589 from jedwards4b/shr_flux_usage
jedwards4b Aug 29, 2025
80ed8c8
Fix mpi-serial restart tests.
fischer-ncar Sep 3, 2025
dab9de1
Merge pull request #591 from fischer-ncar/main
jedwards4b Sep 3, 2025
99156ea
update AMD GPUs on Casper
sjsprecious Sep 5, 2025
ef94e20
Rename B compsets.
fischer-ncar Sep 8, 2025
7a24e2c
Change so to t4s chemistry
fischer-ncar Sep 8, 2025
a0735ec
Merge pull request #593 from fischer-ncar/main
fischer-ncar Sep 8, 2025
d25a2aa
Merge pull request #592 from sjsprecious/update_casper_amd_gpu
jedwards4b Sep 12, 2025
1f93647
changes to gust factor
jedwards4b Sep 27, 2025
579b433
replace qsat calculation
jedwards4b Sep 27, 2025
1778ed0
fix merge errors
jedwards4b Sep 27, 2025
e7f5cdf
Update namelist_definition_drv.xml
jedwards4b Sep 27, 2025
1345734
remove unintended change
jedwards4b Sep 29, 2025
0ee0fdc
Merge pull request #597 from jedwards4b/fix_gust_factors
jedwards4b Sep 29, 2025
08fee47
change of CPL_ALBAV for MOM6, removal of POP variables (including CPL…
mvertens Sep 26, 2025
96d50c3
reintroduced PAUSE xml variables for now
mvertens Sep 26, 2025
913811d
removed references for CPL_EPBAL from buildnml
mvertens Sep 29, 2025
9bc3669
fixed comment for CCSM_CO2_PPMV
mvertens Sep 30, 2025
599dad1
fixed comment
mvertens Sep 30, 2025
3a50750
Merge pull request #595 from mvertens/feature/cleanup_config_settings
jedwards4b Sep 30, 2025
d74bc45
Wrap buildnml call of Case.set_value() in non-readonly context.
samsrabin Oct 6, 2025
60c6514
Merge branch 'main' into fix-buildnml-set_value
samsrabin Oct 6, 2025
0130cb2
Merge pull request #599 from samsrabin/fix-buildnml-set_value
jedwards4b Oct 6, 2025
d8e1593
compile with intel is now successful
mvertens Oct 16, 2025
47a6c78
removed all references to water isotopes - since this will be heavily…
Oct 16, 2025
d9eb391
compile fixes for removing isotopes
mvertens Oct 16, 2025
5c47bc7
removed CPL_EPBAL
mvertens Oct 16, 2025
0856db6
reintroduced usage of shr_wv_sat_qsat that was lost in the cherry-pic…
mvertens Oct 16, 2025
c3e34f4
some cleanup of routine
mvertens Oct 17, 2025
9f548a4
fixed compiler issue
mvertens Oct 17, 2025
a570a15
more compile problem fixes in git workflow
mvertens Oct 17, 2025
1756413
updates to get compilation working
mvertens Oct 17, 2025
9682c52
more updates to get code to compile successfully
mvertens Oct 17, 2025
cc8f24e
more compile fixes
mvertens Oct 17, 2025
7442cb2
another compiler fix
mvertens Oct 17, 2025
4a35ebe
addressed issue raised in PR review
mvertens Oct 19, 2025
4e7bbe4
updates for noresm workflows
mvertens Oct 19, 2025
b75f582
Merge branch 'feature/new_atmocn_flux_modules_escomp' into feature/up…
mvertens Oct 19, 2025
578607a
changed comment
mvertens Oct 19, 2025
38e4c74
fixed typo
mvertens Oct 19, 2025
bc50b6d
fixed comment
mvertens Oct 19, 2025
1a9153b
minor formatting change
mvertens Oct 19, 2025
ed805ef
update for history
mvertens Oct 20, 2025
9d636ec
uncomment tmate to debug workflow
jedwards4b Oct 20, 2025
e9c9d56
uncomment tmate to debug workflow
jedwards4b Oct 20, 2025
801f2a2
Add one more barrier at end of run
mnlevy1981 Oct 20, 2025
c750118
Merge pull request #603 from mnlevy1981/one_last_barrier
jedwards4b Oct 20, 2025
161b084
backed out changes for noresm
mvertens Oct 21, 2025
c134015
Merge pull request #602 from mvertens/feature/new_atmocn_flux_modules…
jedwards4b Oct 24, 2025
3489aef
Fix ERR test.
fischer-ncar Oct 25, 2025
18eb93b
Merge pull request #604 from fischer-ncar/main
fischer-ncar Oct 28, 2025
66b2e59
Merge tag 'cmeps1.1.23' into feature/update_to_cmeps1.1.23
Oct 31, 2025
ff93205
updated shr_megan_mod.F90 to cmeps1.1.23
Oct 31, 2025
a6505ae
backed out cmeps1.1.23 changes to flux_atmocn_COARE_mod.F90 and flux_…
Nov 1, 2025
36e7fa8
removed unused variable is
mvertens Nov 1, 2025
e02828d
removed unused variable
mvertens Nov 1, 2025
1a04ba1
removed unused variable
mvertens Nov 1, 2025
0f14d67
made Taylor the default scheme for the ocean albedo calculation for N…
mvertens Nov 4, 2025
b9abe25
added new timers in mapping
mvertens Nov 28, 2025
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
19 changes: 0 additions & 19 deletions .github/workflows/bumpversion.yml

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/extbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: extbuild
# events but only for the main branch
on:
push:
branches: [ main ]
branches: [ noresm ]
pull_request:
branches: [ main ]
branches: [ noresm ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -23,8 +23,8 @@ jobs:
ESMF_VERSION: v8.8.0
PNETCDF_VERSION: checkpoint.1.14.0
NETCDF_FORTRAN_VERSION: v4.6.1
PIO_VERSION: pio2_6_4
CDEPS_VERSION: cdeps1.0.64
PIO_VERSION: pio2_6_5
CDEPS_VERSION: cdeps1.0.80
steps:
- uses: actions/checkout@v4
# Build the ESMF library, if the cache contains a previous build
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
path: /homme/runner/work/CMEPS/CMEPS/build-cdeps
key: ${{ runner.os }}-${{ env.CDEPS_VERSION }}.cdeps1

- name: checkout CDEPS
uses: actions/checkout@v4
with:
Expand All @@ -85,7 +85,7 @@ jobs:
- name: get genf90
run: |
cd cdeps-src
git submodule update --init
git submodule update --init
- name: Build CDEPS
if: steps.cache-cdeps.outputs.cache-hit != 'true'
uses: ESCOMP/CDEPS/.github/actions/buildcdeps@cdeps1.0.26
Expand All @@ -95,7 +95,7 @@ jobs:
src_root: ${GITHUB_WORKSPACE}/cdeps-src
cmake_flags: " -Wno-dev -DDISABLE_FoX=ON -DCMAKE_BUILD_TYPE=DEBUG -DWERROR=ON -DCMAKE_Fortran_FLAGS=\"-DCPRGNU -g -Wall \
-ffree-form -ffree-line-length-none -fallow-argument-mismatch \""

- name: Build CMEPS
run: |
export PIO=$HOME/pio
Expand Down
81 changes: 48 additions & 33 deletions .github/workflows/srt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: scripts regression tests
# events but only for the main branch
on:
push:
branches: [ main ]
branches: [ noresm ]
pull_request:
branches: [ main ]
branches: [ noresm ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -25,10 +25,10 @@ jobs:
FC: mpifort
CXX: mpicxx
CPPFLAGS: "-I/usr/include -I/usr/local/include "
LDFLAGS: "-L/usr/lib/x86_64-linux-gnu -lnetcdf -lnetcdff -lpnetcdf"
LDFLAGS: "-L/usr/lib/x86_64-linux-gnu -lnetcdf -lnetcdff -lpnetcdf"
# Versions of all dependencies can be updated here
ESMF_VERSION: v8.6.1
PARALLELIO_VERSION: pio2_6_3
ESMF_VERSION: v8.9.0
PARALLELIO_VERSION: pio2_6_6
CIME_MODEL: cesm
CIME_DRIVER: nuopc
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,9 +40,9 @@ jobs:
id: load-env
run: |
set -x
sudo apt-get update
sudo apt-get update
sudo apt-get install libxml2-utils
sudo apt-get install netcdf-bin
sudo apt-get install netcdf-bin
sudo apt-get install libnetcdf-dev
sudo apt-get install libnetcdff-dev
sudo apt-get install pnetcdf-bin
Expand All @@ -63,30 +63,30 @@ jobs:
- run: echo "PyYAML" > requirements.txt
- name: Install PyYAML
run: pip install -r requirements.txt
# use the latest cesm main
- name: cesm checkout
# use the latest noresm main
- name: noresm checkout
uses: actions/checkout@v4
with:
repository: ESCOMP/CESM
path: cesm
repository: NorESMhub/NorESM
path: noresm
# this cmeps commit
- name: cmeps checkout
uses: actions/checkout@v4
with:
path: cesm/components/cmeps
# Checkout cesm datamodels and support
path: noresm/components/cmeps

# Checkout noresm datamodels and support
# cpl7 is needed - i think that's a bug
- name: checkout externals
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
pushd cesm
pushd noresm
./bin/git-fleximod update cime ccs_config cdeps share mct parallelio
cd ccs_config
git checkout main
git checkout noresm
cd ../cime
git checkout master
git checkout noresm
git status
if [[ ! -e "${PWD}/.gitmodules.bak" ]]
then
Expand All @@ -96,11 +96,11 @@ jobs:
fi
git submodule update --init
cd ../components/cdeps
git checkout main
git checkout noresm
git submodule update --init
cd ../../share
git checkout main
git checkout noresm

- name: Cache ESMF
id: cache-esmf
uses: actions/cache@v4
Expand All @@ -119,17 +119,17 @@ jobs:
id: cache-inputdata
uses: actions/cache@v4
with:
path: $HOME/cesm/inputdata
path: $HOME/noresm/inputdata
key: inputdata

- name: Build ParallelIO
if: steps.cache-PARALLELIO.outputs.cache-hit != 'true'
uses: NCAR/ParallelIO/.github/actions/parallelio_cmake@05173a6556ea8d80eb34e3881a5014ea8f4b7543
uses: NCAR/ParallelIO/.github/actions/parallelio_cmake@b38e34eeb9b75ce81ac94daf7c5245931de00b9d
with:
parallelio_version: ${{ env.ParallelIO_VERSION }}
enable_fortran: True
install_prefix: ${GITHUB_WORKSPACE}/pio

- name: Install ESMF
uses: esmf-org/install-esmf-action@v1
env:
Expand All @@ -150,10 +150,10 @@ jobs:

- name: PREP for scripts regression test
run: |
mkdir -p $HOME/cesm/scratch
mkdir -p $HOME/cesm/inputdata
pushd $GITHUB_WORKSPACE/cesm/cime/CIME/tests
export SRCROOT=$GITHUB_WORKSPACE/cesm/
mkdir -p $HOME/noresm/scratch
mkdir -p $HOME/noresm/inputdata
pushd $GITHUB_WORKSPACE/noresm/cime/CIME/tests
export SRCROOT=$GITHUB_WORKSPACE/noresm/
export CIME_TEST_PLATFORM=ubuntu-latest
export PIO_INCDIR=$GITHUB_WORKSPACE/pio/include
export PIO_LIBDIR=$GITHUB_WORKSPACE/pio/lib
Expand All @@ -162,19 +162,34 @@ jobs:
export NETCDF_PATH=/usr
export PNETCDF_PATH=/usr
export LD_LIBRARY_PATH=/usr/lib/libx86_64-linux-gnu/:$LD_LIBRARY_PATH
cat <<EOF >> $GITHUB_WORKSPACE/cesm/ccs_config/machines/cmake_macros/ubuntu-latest.cmake
cat <<EOF >> $GITHUB_WORKSPACE/noresm/ccs_config/machines/cmake_macros/ubuntu-latest.cmake
set(NetCDF_Fortran_INCLUDE_DIR /usr/include)
set(NetCDF_Fortran_LIBRARY /usr/lib/x86_64-gnu-Linux/libnetcdff.so)
EOF
printenv >> $GITHUB_ENV
popd
- name: scripts regression tests
run: |
pushd $GITHUB_WORKSPACE/cesm/cime/CIME/tests
./scripts_regression_tests.py --no-fortran-run --compiler gnu --mpilib openmpi --machine ubuntu-latest
pushd $GITHUB_WORKSPACE/noresm/cime/CIME/tests
./scripts_regression_tests.py --no-fortran-run --compiler gnu --mpilib openmpi --machine ubuntu-latest --no-teardown
popd

# How to download artifacts:
# https://docs.github.com/en/actions/managing-workflow-runs/downloading-workflow-artifacts

# - name: Upload test logs
# if: ${{ failure() }}
# steps:
# - name: Tar test logs
# run: tar zcf scratch-${{ matrix.python-version }}.tar.gz /home/runner/noresm/scratch
# - name: save artifact
# uses: actions/upload-artifact@v4
# with:
# name: test-logs-${{ matrix.python-version }}
# path: scratch-${{ matrix.python-version }}.tar.gz
# retention-days: 4
# 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
5 changes: 4 additions & 1 deletion cesm/driver/esm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module ESM
use shr_mem_mod , only : shr_mem_init
use shr_log_mod , only : shr_log_setLogunit, shr_log_error
use esm_utils_mod, only : logunit, maintask, dbug_flag, chkerr
use esmf , only : ESMF_FAILURE
use esmf , only : ESMF_FAILURE, ESMF_VMBARRIER
implicit none
private

Expand Down Expand Up @@ -1557,6 +1557,9 @@ subroutine esm_finalize(driver, rc)
call ESMF_VMGet(vm, mpiCommunicator=mpicomm, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

call ESMF_VMBarrier(vm, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

call NUOPC_CompAttributeGet(driver, name="timing_dir",value=timing_dir, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

Expand Down
2 changes: 1 addition & 1 deletion cesm/flux_atmocn/flux_atmocn_driver_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ subroutine flux_atmOcn_driver(logunit, nMax, &
real(R8),intent(out) :: lwup (nMax) ! heat flux: lw upward (W/m^2)
real(R8),intent(out) :: evap (nMax) ! water flux: evap ((kg/s)/m^2)
real(R8),intent(out) :: taux (nMax) ! surface stress, zonal (N)
real(R8),intent(out) :: tauy (nMax) ! surface stress, maridional (N)
real(R8),intent(out) :: tauy (nMax) ! surface stress, meridional (N)
real(R8),intent(out) :: tref (nMax) ! diag: 2m ref height T (K)
real(R8),intent(out) :: qref (nMax) ! diag: 2m ref humidity (kg/kg)
real(R8),intent(out) :: duu10n(nMax) ! diag: 10m wind speed squared (m/s)^2
Expand Down
12 changes: 6 additions & 6 deletions cesm/nuopc_cap_share/shr_megan_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ module shr_megan_mod
integer :: index
real(r8), pointer :: emis_factors(:) ! function of plant-function-type (PFT)
integer :: class_number ! MEGAN class number
real(r8) :: coeff ! emissions component coeffecient
real(r8) :: molec_weight ! molecular weight of the MEGAN compound (g/mole)
type(shr_megan_megcomp_t), pointer :: next_megcomp ! points to next member in the linked list
endtype shr_megan_megcomp_t

type shr_megan_comp_ptr
type(shr_megan_megcomp_t), pointer :: ptr
type(shr_megan_megcomp_t), pointer :: ptr
real(r8) :: coeff ! emissions component coeffecient
endtype shr_megan_comp_ptr

! chemical compound in CAM mechanism that has MEGAN emissions
Expand Down Expand Up @@ -227,7 +227,8 @@ subroutine shr_megan_init( specifier)
if (localPet==0) write(logunit,*) ' species : ', item%name
do j = 1,item%n_terms
if (localPet==0) write(logunit,'(f12.4,a,a)') item%coeffs(j),' * ', item%vars(j)
shr_megan_mechcomps(i)%megan_comps(j)%ptr => add_megan_comp( item%vars(j), item%coeffs(j) )
shr_megan_mechcomps(i)%megan_comps(j)%ptr => add_megan_comp( item%vars(j) )
shr_megan_mechcomps(i)%megan_comps(j)%coeff = item%coeffs(j)
enddo
shr_megan_mechcomps_n = shr_megan_mechcomps_n+1

Expand All @@ -243,10 +244,9 @@ end subroutine shr_megan_init

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

function add_megan_comp( name, coeff ) result(megan_comp)
function add_megan_comp( name ) result(megan_comp)

character(len=16), intent(in) :: name
real(r8), intent(in) :: coeff
type(shr_megan_megcomp_t), pointer :: megan_comp

megan_comp => get_megan_comp_by_name(shr_megan_linkedlist, name)
Expand All @@ -264,7 +264,7 @@ function add_megan_comp( name, coeff ) result(megan_comp)
megan_comp%index = shr_megan_megcomps_n+1

megan_comp%name = trim(name)
megan_comp%coeff = coeff

nullify(megan_comp%next_megcomp)

call add_megan_comp_to_list(megan_comp)
Expand Down
32 changes: 28 additions & 4 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _CIMEROOT = os.environ.get("CIMEROOT")
if _CIMEROOT is None:
raise SystemExit("ERROR: must set CIMEROOT environment variable")

sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))
sys.path.append(os.path.join(_CIMEROOT, "CIME", "Tools"))

import shutil, glob, itertools
from standard_script_setup import *
Expand Down Expand Up @@ -52,7 +52,6 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
)
config["timer_level"] = "pos" if case.get_value("TIMER_LEVEL") >= 1 else "neg"
config["continue_run"] = ".true." if case.get_value("CONTINUE_RUN") else ".false."
config["flux_epbal"] = "ocn" if case.get_value("CPL_EPBAL") == "ocn" else "off"
config["mask_grid"] = case.get_value("MASK_GRID")
for val in ("HIST", "REST", "STOP"):
config[val.lower()+"_option"] = case.get_value(val+"_OPTION")
Expand Down Expand Up @@ -143,7 +142,8 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
elif case.get_value("RUN_TYPE") == "branch":
config["run_type"] = "branch"

config['wav_ice_coupling'] = 'ww3' in config['COMP_WAV'] and config['COMP_ICE'] == 'cice'
if config['COMP_WAV'] == 'ww3' and config['COMP_ICE'] == 'cice':
config["wav_ice_coupling"] = "on"

if config["COMP_OCN"] == "blom":
if "ecosys" in case.get_value("BLOM_TRACER_MODULES"):
Expand Down Expand Up @@ -682,13 +682,37 @@ def compare_drv_flds_in(first, second, infile1, infile2):
% (infile1, infile2),
)

def cmeps_lib_list(case):
# provide a list of support libs that must be built for this case
# should be ordered with dependent libraries listed after those depended on
# the library names should match the keys in variable BUILD_LIB_FILE from config_files.xml
ufs_driver = os.environ.get("UFS_DRIVER")
if ufs_driver:
logger.info("UFS_DRIVER is set to {}".format(ufs_driver))

libs = case.get_values("CASE_SUPPORT_LIBRARIES")

mpilib = case.get_value("MPILIB")
if mpilib == "mpi-serial" and "mpi-serial" not in libs:
libs.insert(0, mpilib)

ocn_model = case.get_value("COMP_OCN")
# These will be handled by MOM and CAM, included here for backward compatibility.
atm_dycore = case.get_value("CAM_DYCORE")
if (ocn_model == "mom" or (atm_dycore and atm_dycore == "fv3")) and "FMS" not in libs:
libs.append("FMS")
return libs

###############################################################################
def buildnml(case, caseroot, component):
###############################################################################
if component != "drv":
raise AttributeError

libs = cmeps_lib_list(case)
with Case(case.get_value("CASEROOT"), read_only=False) as case_tmp:
case_tmp.set_value("CASE_SUPPORT_LIBRARIES", ",".join(libs))

esmfmkfile = os.getenv("ESMFMKFILE")
expect(
esmfmkfile and os.path.isfile(esmfmkfile),
Expand Down Expand Up @@ -779,7 +803,7 @@ def buildnml(case, caseroot, component):
def _main_func():
caseroot = parse_input(sys.argv)

with Case(caseroot) as case:
with Case(caseroot, read_only=False) as case:
buildnml(case, caseroot, "drv")


Expand Down
Loading
Loading