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/CDEPS (2024-12-10) #66

Merged
merged 261 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
977260a
Add externals to the git ignore
ekluzek May 8, 2023
0afab9d
Merge pull request #232 from ekluzek/removetabsindatmbuildnml
jedwards4b May 9, 2023
252acc0
Merge remote-tracking branch 'escomp/main' into cplhistStreams
billsacks May 9, 2023
af2a809
Merge pull request #228 from olyson/cplhistStreams
billsacks May 9, 2023
1ca35a5
black reformat these python files
jedwards4b May 16, 2023
aa77161
Merge pull request #233 from jedwards4b/black_format_python
jedwards4b May 17, 2023
380f6fe
update github to make cdeps ext build an action
jedwards4b May 19, 2023
895f31b
debug action
jedwards4b May 19, 2023
cae6d80
try again
jedwards4b May 19, 2023
169c280
fix run statement format
jedwards4b May 19, 2023
4a1f889
need to build in action to make it useable by other repos
jedwards4b May 19, 2023
d7c8f92
Merge pull request #234 from jedwards4b/update_actions
jedwards4b May 19, 2023
9a1d6f9
update SST files for historical configurations
fvitt Jun 5, 2023
63889cd
Merge pull request #235 from fvitt/sst_files_update
jedwards4b Jun 5, 2023
f5ad119
correct docs link in README.md
klindsay28 Jun 27, 2023
bb232d8
enable DISABLE_FoX for standalone build
uturuncoglu Jul 3, 2023
f3a837b
install data component specific module files
uturuncoglu Jul 4, 2023
2521e4e
introduce export_all option
uturuncoglu Jun 30, 2022
fe5a578
Merge pull request #236 from klindsay28/docs_link_in_readme
jedwards4b Jul 10, 2023
39bc5b1
Merge remote-tracking branch 'upstream/main' into feature/esmx
uturuncoglu Jul 10, 2023
ae827c3
Merge pull request #237 from uturuncoglu/feature/esmx
uturuncoglu Jul 10, 2023
707b505
fix for docn
uturuncoglu Jul 13, 2023
26ab1e0
Merge pull request #238 from uturuncoglu/hotfix/export_all
jedwards4b Jul 13, 2023
4750a27
update esmf bld to use official esmf action
jedwards4b Aug 16, 2023
bb60bdc
update esmf bld to use official esmf action
jedwards4b Aug 16, 2023
aab9411
add pio as external to esmf build
jedwards4b Aug 16, 2023
2e1b9f8
add pio as external to esmf build
jedwards4b Aug 16, 2023
57ef5ec
add pnetcdf-config
jedwards4b Aug 16, 2023
6dce402
cleanup github workflow script
jedwards4b Aug 16, 2023
8276318
response to review
jedwards4b Aug 16, 2023
f415e66
response to review
jedwards4b Aug 16, 2023
f7e657e
Merge pull request #239 from jedwards4b/github_esmf_bld_update
jedwards4b Aug 17, 2023
d31de60
simple fix
Aug 21, 2023
c4a200b
Merge branch 'main' into buildlib_fix
Aug 21, 2023
8b7bb12
make a little nicer
Aug 21, 2023
a04df35
put back...
Aug 21, 2023
4a6b374
Merge pull request #241 from adrifoster/buildlib_fix
billsacks Aug 21, 2023
30477e1
merge cdeps1.0.21 and resolve conflicts
alperaltuntas Oct 4, 2023
57cd466
in simple (idealized) data mode, replace giss radiation with an ideal…
alperaltuntas Oct 8, 2023
3501b20
address change requests: undo nlfilename assignment reorder, use ESMF…
alperaltuntas Oct 9, 2023
74b5c4c
Merge pull request #198 from alperaltuntas/merge_simple_forcing
jedwards4b Oct 9, 2023
4a38196
add save attribute to this variable
jedwards4b Oct 17, 2023
a0e50c9
add namelist lookup to each namelist read call
jedwards4b Oct 20, 2023
7f79dc6
need to add shr_nl_mod for standalone builds
jedwards4b Oct 20, 2023
723d3f9
Merge pull request #250 from jedwards4b/add_nl_lookup_tool
jedwards4b Oct 20, 2023
9de323e
fix minor typo in drof modifier mode
alperaltuntas Oct 24, 2023
7ebbff8
Merge pull request #251 from alperaltuntas/fix_modifier_typo
jedwards4b Oct 24, 2023
9945da5
allow path changes and symlinks in stream filenames
jedwards4b Oct 27, 2023
97a2da6
Merge pull request #253 from jedwards4b/allow_path_changes
jedwards4b Oct 27, 2023
ee00179
update default SSTICE_DATA_FILENAME to match that previously used in cam
jedwards4b Dec 13, 2023
416b566
enabling setting source and destination mask for interpolation
uturuncoglu Nov 9, 2023
8c43589
new passing of 10m wind explicitly to ww3 - done in a backwards compa…
mvertens Jan 10, 2024
28cc73e
Merge pull request #259 from uturuncoglu/feature/mask_only
jedwards4b Jan 26, 2024
30a360c
Merge branch 'main' into sst_Had_update
jedwards4b Jan 26, 2024
3c70fc8
Merge pull request #256 from jedwards4b/sst_Had_update
jedwards4b Jan 26, 2024
a1f85a1
Merge pull request #1 from mvertens/feature/pass_10mwind_to_ww3
mvertens Feb 27, 2024
cda4168
preliminary cdeps updatesls
TeaganKing Mar 8, 2024
b784004
namelist def datm update
TeaganKing Mar 8, 2024
f2b6b61
Merge tag 'cdeps1.0.28' into noresm
mvertens Mar 9, 2024
56a3eb5
first draft implementation of multiple ice sheets in the dglc code - …
mvertens Mar 18, 2024
e1f0927
additional changes for noevolve mode
mvertens Mar 19, 2024
96f8b7a
more updates to fix compilation issues - not there yet
mvertens Mar 19, 2024
1f42d9c
more compilation fixes
mvertens Mar 20, 2024
d7e590d
more compilation fixes
mvertens Mar 20, 2024
f603517
fixes to for advertise and realize
mvertens Mar 20, 2024
ececaaa
finished advertise and realize phases
mvertens Mar 20, 2024
aa6a9e9
now in run phase
mvertens Mar 20, 2024
f099963
dglc now runs and produces good values for topog
mvertens Mar 20, 2024
f724a78
implemented correct export fields for noevolve mode
mvertens Mar 21, 2024
d24fac4
more fixes for having import data sent back
mvertens Mar 22, 2024
e5c7386
hard-wired greenland area as a prototype test
mvertens Mar 24, 2024
862df10
more changes to get dglc working with CLM
Mar 27, 2024
63ed71f
first addition of documentation for dglc
Mar 27, 2024
dbec7c9
udpates for documentation for dglc
Mar 27, 2024
8f32440
more additions for dglc
Mar 27, 2024
6e04eea
update the testlist to work on derecho
jedwards4b Mar 28, 2024
098e604
Merge pull request #267 from jedwards4b/update_testlist_for_derecho
jedwards4b Mar 28, 2024
368ea95
update the testlist to work on derecho
jedwards4b Mar 28, 2024
6b8da82
Merge branch 'main' into feature/add_dglc
Mar 28, 2024
a700dd1
added new derecho tests across the system including in dglc
Mar 28, 2024
0fdefdf
removed cdeps/cime_config/testdefs - tests are already defined in cde…
Mar 28, 2024
c6522b2
fixed regression testing failures and also added aux_cdeps_noresm tes…
Mar 29, 2024
4ee74e8
removed unused variable declaration
Mar 29, 2024
24613eb
need CESMCOUPLED cpp here
jedwards4b Mar 29, 2024
f7d6739
clean up
jedwards4b Mar 29, 2024
a5f6ecb
fixed indentation
Mar 29, 2024
9b92a2b
Increase stream filename length to CX (512) from CL (256) (#265)
ekluzek Mar 30, 2024
8bd6080
Merge branch 'main' into plumber
mvertens Mar 30, 2024
e88f40c
updates for dglc features required
Mar 30, 2024
b879b20
Merge branch 'main' into feature/add_dglc
Mar 30, 2024
6891809
updated documentation
Mar 30, 2024
df7ccea
Merge pull request #268 from mvertens/feature/add_dglc
jedwards4b Apr 1, 2024
3a4435b
make the amount of data required to download minimal for testing
jedwards4b Apr 2, 2024
3cbc4e9
Merge pull request #271 from jedwards4b/enhancement/shorter_test_data…
jedwards4b Apr 10, 2024
c12a8d0
add Fogg_rofi to dglc
Apr 17, 2024
6673b85
update to have antarctica work with clm
Apr 17, 2024
1e9220b
added ability to read in multi-level docn data
Apr 19, 2024
40d63eb
added new multilevel mode to docn
Apr 19, 2024
a6f0eb0
changes to get multilevel ocean input read
Apr 23, 2024
458f0df
added query for units of ocean depth layers
Apr 23, 2024
38ce4fb
updates needed for multi-level ocean input
Apr 24, 2024
2121f2b
update comment
Apr 24, 2024
438e43f
Merge branch 'main' into feature/update_docn
Apr 24, 2024
423829f
Revert "make the amount of data required to download minimal for test…
jedwards4b Apr 28, 2024
2228d54
Merge pull request #275 from ESCOMP/revert-271-enhancement/shorter_te…
jedwards4b Apr 28, 2024
73bbedd
Merge tag 'cdeps1.0.33' into feature/update_docn
Apr 29, 2024
7e1096f
fixes to permit stream field with ungridded dimensions
Apr 29, 2024
1ba9b8f
updated testlist so that DGLC%NOEVOLVE passes
Apr 29, 2024
dc6923e
fixes for vertical interpolation
May 1, 2024
27726a1
update for blom output stream
mvertens May 2, 2024
4070e0a
fix for CTSM issue Issue #2518
May 5, 2024
47a0d2b
updates to PLUMBER stream
TeaganKing May 8, 2024
c2ac676
include correct variables in stream
TeaganKing May 9, 2024
13f4594
temporary plumber change for dtlimit
TeaganKing May 9, 2024
cf975ab
Update stream_definition_datm.xml to include longer files
TeaganKing May 9, 2024
72b8e24
remove manage externals, replace with git-fleximod
jedwards4b May 13, 2024
89a713f
update github workflow
jedwards4b May 13, 2024
023f198
fix typo in .gitmodules
jedwards4b May 13, 2024
7476950
Merge pull request #281 from jedwards4b/rme/cdeps1.0.33
jedwards4b May 13, 2024
017e6a9
update workflow versions
jedwards4b May 14, 2024
ca2d62b
Merge remote-tracking branch 'mvdev/feature/update_docn' into feature…
jedwards4b May 14, 2024
472b568
comment out unused vars
jedwards4b May 14, 2024
a8baf66
remove more unused vars
jedwards4b May 14, 2024
0f7e6c6
Merge branch 'main' into feature/update_docn
jedwards4b May 14, 2024
4a745b8
Merge pull request #280 from ESCOMP/feature/update_docn
jedwards4b May 14, 2024
ee01687
bug fix for single level
May 15, 2024
7a522c8
Merge pull request #282 from mvertens/feature/bugfix
jedwards4b May 15, 2024
d001610
Update if statements for dtlimit in stream_definition_datm.xml
TeaganKing May 15, 2024
0875610
Merge branch 'main' into feature/fix_mpas_input
jedwards4b May 16, 2024
bb18dea
updates the fox build since the directory now always exists (but may …
jedwards4b May 17, 2024
cccf951
Merge branch 'main' into default_files
TeaganKing May 22, 2024
493b38e
Add changes to exchange between SOM and WW3DEV
dabail10 May 31, 2024
0acd3c7
fix initialization of dglc import/export pointers
Jun 14, 2024
096ff6a
Fix missing field width for L edit descriptor for NAG
fischer-ncar Jun 14, 2024
b4b3ac5
Merge pull request #287 from fischer-ncar/nag-fix
fischer-ncar Jun 14, 2024
41f83f7
Merge branch 'main' into default_files
TeaganKing Jun 24, 2024
9b73292
Merge pull request #277 from TeaganKing/default_files
billsacks Jun 24, 2024
8c47b86
Merge branch 'ESCOMP:main' into plumber
TeaganKing Jun 24, 2024
badd638
Merge branch 'main' into feature/fix_mpas_input
jedwards4b Jun 26, 2024
01f4761
Merge pull request #278 from mvertens/feature/fix_mpas_input
jedwards4b Jun 26, 2024
8f5f774
Merge branch 'main' into update_fox_bld
jedwards4b Jun 26, 2024
37f8103
Merge branch 'main' into somwav
jedwards4b Jun 26, 2024
10b98cb
Merge branch 'main' into feature/init_dglc_pointers
jedwards4b Jun 26, 2024
0b2b30c
Merge pull request #283 from jedwards4b/update_fox_bld
jedwards4b Jun 26, 2024
54e7483
Merge branch 'main' into somwav
jedwards4b Jun 26, 2024
b320caa
Merge branch 'main' into feature/init_dglc_pointers
jedwards4b Jun 26, 2024
ab7df9f
Merge pull request #285 from dabail10/somwav
jedwards4b Jun 26, 2024
ae3c6ff
Merge branch 'main' into feature/init_dglc_pointers
jedwards4b Jun 26, 2024
f0eceab
Merge pull request #286 from mvertens/feature/init_dglc_pointers
jedwards4b Jun 26, 2024
6d4ce9e
Update stream_definition_datm.xml: PLUMBER to PLUMBER2
TeaganKing Jun 26, 2024
b81072a
renamed Fogg_rofi to Fgrg_rofi
Jun 28, 2024
0ef61ff
Merge branch 'main' into feature/rename_fogg_rofi
Jun 28, 2024
3051147
merge to main
Jun 28, 2024
453a9d1
Merge pull request #288 from mvertens/feature/rename_fogg_rofi
jedwards4b Jun 28, 2024
b7a6088
Add capability to send both prescribed SST and multi-level ocean SST/…
mvertens Jul 12, 2024
b9c2964
Update buildnml PLUMBER --> PLUMBER2
TeaganKing Jul 30, 2024
e3fb72a
Update namelist_definition_datm.xml PLUMBER --> PLUMBER2
TeaganKing Jul 30, 2024
7e687d3
Update stream_definition_datm.xml PLUMBER --> PLUMBER2
TeaganKing Jul 30, 2024
fe1eece
Update stream_cdeps.py PLUMBER --> PLUMBER2
TeaganKing Jul 30, 2024
1f4f5ca
Update stream_definition_datm.xml documentation
TeaganKing Jul 30, 2024
d101eda
a fix for cdeps build concurancy issues
jedwards4b Aug 1, 2024
e98991f
Update buildnml to include fix for PLUMBER2.PLUMBER2SITE (with period)
TeaganKing Aug 1, 2024
d564ec9
Update buildnml to separate plumber/neon cases
TeaganKing Aug 1, 2024
c4202b4
increase timeout for cdeps build
jedwards4b Aug 1, 2024
b5395f4
Update buildnml to use caseroot to get plumber2 information because p…
TeaganKing Aug 1, 2024
c9b6e57
Update buildnml now that PLUMBER2SITE xmlchange is working
TeaganKing Aug 2, 2024
734d38a
example hard coded start year in stream_definition_datm.xml
TeaganKing Aug 2, 2024
57256a2
Update stream_cdeps.py to avoid CLM_USRDAT.PLUMBER2 stream
TeaganKing Aug 8, 2024
c6d01f6
include xml var for yr_start in filename for plumber2
TeaganKing Aug 8, 2024
46c1074
Merge pull request #291 from jedwards4b/fix/cdeps_build_concurancy
jedwards4b Aug 9, 2024
66ce97d
bugfix for fgrg_rofi computation (#295)
mvertens Aug 11, 2024
e35cb72
implement xml var DATM_YR_START_FILENAME
TeaganKing Aug 13, 2024
0a43861
updates for aux-cdeps tests now passing
TeaganKing Aug 16, 2024
1251a7b
Merge branch 'ESCOMP:main' into plumber
TeaganKing Aug 16, 2024
1797342
Update config_component.xml to address Erik's comment
TeaganKing Aug 16, 2024
ffd4077
Update config_component.xml to use positive 9999
TeaganKing Aug 16, 2024
7e363e7
Add comment to stream_cdeps.py
TeaganKing Aug 16, 2024
f199f9f
Merge pull request #262 from TeaganKing/plumber
billsacks Aug 16, 2024
cce236c
revert the change to download fox
jedwards4b Aug 20, 2024
52657a4
remove commented code
jedwards4b Aug 21, 2024
7b0b3a8
Merge pull request #297 from jedwards4b/fox_download_revert
jedwards4b Aug 21, 2024
e3aeb54
add nuopc_shr_methods.F90 for UFS
jedwards4b Aug 21, 2024
d5ba65b
remove unused function
jedwards4b Aug 21, 2024
483a45a
Merge pull request #298 from jedwards4b/add/nuopc_shr_methods.F90
jedwards4b Aug 22, 2024
8e1f68d
Fixed usrf bug and first draft simple hole filling for neg qice
Katetc Aug 29, 2024
da714ce
Passing logunit to run comp subroutine
Katetc Aug 29, 2024
aedd722
Fix step 2, scaled removal by fraction of local positives
Katetc Aug 30, 2024
b73abc3
Third step complete, added global sums to spread calculation out over…
Katetc Aug 30, 2024
9a8afbc
Fixed area weighting on application
Katetc Aug 30, 2024
1f7234f
starting the translation
jedwards4b Aug 30, 2024
78f7c21
add new JRA 1.5 streams for datm and drof
alperaltuntas Aug 31, 2024
99ae4e6
add restart functionality for dglc%noevolve
mvertens Sep 2, 2024
7b78b8f
got both write and read restarts working
mvertens Sep 2, 2024
b2ded39
fixed problems in github CI
mvertens Sep 3, 2024
975b9f4
Merge tag 'cdeps1.0.49' into feature/add_restart_for_dglc
mvertens Sep 3, 2024
5020df6
Merge pull request #306 from mvertens/feature/add_restart_for_dglc
jedwards4b Sep 3, 2024
4f63063
Merge remote-tracking branch 'origin/main' into add_rpointer_timestamp
jedwards4b Sep 3, 2024
5251638
Removed second area weighting and second if clause to make sure the 0…
Katetc Sep 3, 2024
9d057d7
fix issues in refactor
jedwards4b Sep 4, 2024
e982ef2
fix varid in write
jedwards4b Sep 4, 2024
276e2a1
reorder iodesc destroy
jedwards4b Sep 4, 2024
8b7314b
Merge pull request #307 from jedwards4b/dglc_fix_for_multiple_icesheets
jedwards4b Sep 4, 2024
7cdf9a5
modify restart read
jedwards4b Sep 4, 2024
2e0a332
Merge up new changes from main
Katetc Sep 4, 2024
e05b9cd
save before reverting to main
jedwards4b Sep 4, 2024
e65d8d9
save before reverting to main
jedwards4b Sep 4, 2024
34838d2
One more review comment addressed
Katetc Sep 5, 2024
863def0
restart ERS.f19_g17.2000_DATM%NYF_SLND_DICE%SSMI_DOCN%DOM_DROF%NYF_DG…
jedwards4b Sep 5, 2024
328d94a
update aux_cdeps tests for cesm3
jedwards4b Sep 5, 2024
9b22a50
Final code cleanup and review comments
Katetc Sep 5, 2024
51606cf
Merge remote-tracking branch 'mydev/update_cdeps_testslists' into add…
jedwards4b Sep 6, 2024
a82f794
Merge branch 'main' into update_cdeps_testslists
jedwards4b Sep 6, 2024
77dcbe1
Merge pull request #309 from jedwards4b/update_cdeps_testslists
jedwards4b Sep 6, 2024
03057bd
add use statement in lnd and change to restart test for dglc
jedwards4b Sep 6, 2024
5b604f9
Merge branch 'main' into katetc/dglc_negfluxes
Katetc Sep 6, 2024
f6bc974
Merge pull request #303 from Katetc/katetc/dglc_negfluxes
jedwards4b Sep 6, 2024
93cc684
revert change to test, update nuopc_shr_methods
jedwards4b Sep 6, 2024
e0c561d
Merge branch 'main' into add_rpointer_timestamp
jedwards4b Sep 6, 2024
f90b42e
add DATAMODELTEST compset alias
jedwards4b Sep 6, 2024
743120d
fix ocn_aquap analytic cases
jedwards4b Sep 11, 2024
4fecfe3
fix testlist_dglc formating
jedwards4b Sep 30, 2024
302c33f
remove the config_compsets file
jedwards4b Oct 1, 2024
d5da82e
update nuopc_shr_methods to share1.1.3
jedwards4b Oct 1, 2024
c2c4274
fix issue in docn
jedwards4b Oct 3, 2024
26cb593
Merge ESCOMP/main into sync_escomp_2024-10
NickSzapiro-NOAA Oct 7, 2024
7a18189
Remove duplicate SIMPLE case statements (from merge)
NickSzapiro-NOAA Oct 7, 2024
395f9dd
Remove duplicate use datm_datamode_simple_mod in atm_comp_nuopc.F90
NickSzapiro-NOAA Oct 8, 2024
5265d92
Merge branch 'main' into nextsw_cday
billsacks Oct 9, 2024
1eacdcc
Merge pull request #311 from jedwards4b/add_rpointer_timestamp
jedwards4b Oct 15, 2024
0c37744
fix input_data_list generation for when multiple stream_datafiles ent…
alperaltuntas Oct 25, 2024
37b1a13
extend jra v1.5 to 2023
alperaltuntas Oct 25, 2024
573df5d
Merge branch 'main' into add_jra1_5
jedwards4b Oct 25, 2024
faa59db
fix (for real) input_data_list generation for when multiple stream_da…
alperaltuntas Oct 25, 2024
11d937e
Add a namelist flag controlling the nextsw_cday calculation
billsacks Oct 30, 2024
83eb0d9
Merge pull request #304 from alperaltuntas/add_jra1_5
jedwards4b Oct 30, 2024
1f317a3
Improve documentation of nextsw_cday_calc and iradsw
billsacks Oct 31, 2024
329188c
Merge remote-tracking branch 'escomp/main' into nextsw_cday
billsacks Nov 1, 2024
f270f58
Merge pull request #229 from olyson/nextsw_cday
billsacks Nov 5, 2024
3e3ca18
backout the timestamp on rpointer files until alpha05c, remove unused…
jedwards4b Nov 6, 2024
ffed006
Merge branch 'main' into backout_rpointer_timestamp
jedwards4b Nov 6, 2024
4165d06
Merge pull request #314 from jedwards4b/backout_rpointer_timestamp
jedwards4b Nov 6, 2024
89df6c3
Change hard-coded default for nextsw_cday_calc
billsacks Nov 8, 2024
144fd9f
Merge pull request #315 from billsacks/nextsw_cday_default
billsacks Nov 8, 2024
bfd038f
add back rpointer timestamps
jedwards4b Dec 6, 2024
a4e9d13
Merge pull request #316 from jedwards4b/reinsert_rpointer_tstamp
jedwards4b Dec 6, 2024
775ec1d
Revert "add back rpointer timestamps"
jedwards4b Dec 9, 2024
1d99282
correct readd of rpointer timestamps
jedwards4b Dec 9, 2024
8197f05
Merge pull request #317 from jedwards4b/readd_rpointer_timestamps
jedwards4b Dec 9, 2024
c9d1dac
Merge 'ESCOMP/main' into sync_escomp_2024-10
NickSzapiro-NOAA Dec 10, 2024
51f8cd2
Compile fixes
NickSzapiro-NOAA Dec 10, 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
8 changes: 4 additions & 4 deletions .github/workflows/extbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
CPPFLAGS: "-I/usr/include -I/usr/local/include "
LDFLAGS: "-L/usr/lib/x86_64-linux-gnu "
# Versions of all dependencies can be updated here - these match tag names in the github repo
ESMF_VERSION: v8.5.0
ParallelIO_VERSION: pio2_6_0
ESMF_VERSION: v8.6.1
ParallelIO_VERSION: pio2_6_2
steps:
- id: checkout-CDEPS
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- id: load-env
Expand All @@ -37,7 +37,7 @@ jobs:
sudo apt-get install autotools-dev autoconf
- name: Cache PARALLELIO
id: cache-PARALLELIO
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${GITHUB_WORKSPACE}/pio
key: ${{ runner.os }}-${{ env.ParallelIO_VERSION }}-parallelio2
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is a git-fleximod adapted .gitmodules file. Any field with a name starting in fx is a git-fleximod
# specific field. See https://github.com/ESMCI/git-fleximod for details.

19 changes: 1 addition & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,6 @@ add_subdirectory(streams)
add_subdirectory(dshr)

if(NOT DISABLE_FoX)
if(IS_DIRECTORY "${FOX_ROOT}")
message(STATUS "FoX library is already checked out!")
message(STATUS "FoX source dir: ${FOX_ROOT}")
else()
FetchContent_Declare(fox
GIT_REPOSITORY https://github.com/ESMCI/fox.git
GIT_TAG 4.1.2.1
SOURCE_DIR ${FOX_ROOT}
BINARY_DIR ${FOX_ROOT}/..
)
FetchContent_GetProperties(fox)
if(NOT fox_POPULATED)
FetchContent_Populate(fox)
message(STATUS "FoX source dir: ${fox_SOURCE_DIR}")
message(STATUS "FoX binary dir: ${fox_BINARY_DIR}")
endif()
endif()
add_subdirectory(fox)

target_include_directories(streams PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/fox/include>
Expand All @@ -99,7 +82,7 @@ endif()
target_include_directories(dshr PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/streams>
$<INSTALL_INTERFACE:mod>)

foreach(COMP datm dice dlnd docn drof dwav)
foreach(COMP datm dice dglc dlnd docn drof dwav)
add_subdirectory("${COMP}")
if(BLD_STANDALONE)
target_include_directories(${COMP} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/share>
Expand Down
68 changes: 43 additions & 25 deletions cime_config/buildlib
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ def buildlib(bldroot, libroot, case):
strthread = "nothreads"
mpilib = case.get_value("MPILIB")
compiler = case.get_value("COMPILER")
sharedpath = os.path.join(compiler, mpilib, strdebug, strthread, "nuopc")

sharedpath = os.path.join(compiler, mpilib, strdebug, strthread)
sharedroot = case.get_value("SHAREDLIBROOT")
cdepsblddir = os.path.join(sharedroot, sharedpath, "CDEPS")

logger.info("Running cmake for CDEPS")
srcpath = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
cmake_flags = get_standard_cmake_args(case, os.path.join(sharedpath, "cdeps"))
Expand Down Expand Up @@ -147,31 +149,47 @@ def buildlib(bldroot, libroot, case):
else:
bld_time = src_time - 1

# if any file in src is newer than CmakeFiles in the build directory, rerun cmake
# Make sure that no other process is currently trying to build this library, done with a simple lockfile
if os.path.exists(cdepsblddir):
logger.info("{} already exists, checking for lockfile".format(cdepsblddir))
while os.path.exists(os.path.join(cdepsblddir,"lockfile")):
logger.info("Waiting for lockfile in {}".format(cdepsblddir))
time.sleep(10)
else:
logger.info("{} does not exist, creating lockfile".format(cdepsblddir))
os.makedirs(cdepsblddir)
with open(os.path.join(cdepsblddir,"lockfile"),"w") as fd:
fd.write(str(os.getpid()))

try:
# if any file in src is newer than CmakeFiles in the build directory, rerun cmake
if src_time > bld_time:
logger.info("cmake_flags {}".format(cmake_flags))
s, o, e = run_cmd(
"cmake {} ".format(cmake_flags), from_dir=bldroot, verbose=True
)
expect(not s, "ERROR from cmake output={}, error={}".format(o, e))
else:
# The dwav_lib is the last file built in cdeps, wait for it to be built
dwav_lib = os.path.join(bldroot, "dwav", "libdwav.a")
time_to_wait = 600
time_counter = 0
while not os.path.exists(dwav_lib):
time.sleep(1)
time_counter += 1
if time_counter > time_to_wait:
break
expect(time_counter <= time_to_wait, " Timeout waiting for {}".format(dwav_lib))

if src_time > bld_time:
logger.info("cmake_flags {}".format(cmake_flags))
s, o, e = run_cmd(
"cmake {} ".format(cmake_flags), from_dir=bldroot, verbose=True
"make install VERBOSE=1 DESTDIR={}".format(libroot),
from_dir=bldroot,
verbose=True,
)
expect(not s, "ERROR from cmake output={}, error={}".format(o, e))
else:
# The dwav_lib is the last file built in cdeps, wait for it to be built
dwav_lib = os.path.join(bldroot, "dwav", "libdwav.a")
time_to_wait = 300
time_counter = 0
while not os.path.exists(dwav_lib):
time.sleep(1)
time_counter += 1
if time_counter > time_to_wait:
break
expect(time_counter <= time_to_wait, " Timeout waiting for {}".format(dwav_lib))

s, o, e = run_cmd(
"make install VERBOSE=1 DESTDIR={}".format(libroot),
from_dir=bldroot,
verbose=True,
)
finally:
if os.path.exists(os.path.join(cdepsblddir,"lockfile")):
os.remove(os.path.join(cdepsblddir,"lockfile"))

expect(not s, "ERROR from make output={}, error={}".format(o, e))
logger.info("make output={}\nerror={}".format(o, e))
if compiler == "gnu" and case.get_value("DEBUG"):
Expand All @@ -184,7 +202,7 @@ def buildlib(bldroot, libroot, case):
expect(False, nextline)

# Link the CDEPS component directories to the location expected by cime
for comp in ("atm", "lnd", "ice", "ocn", "rof", "wav"):
for comp in ("atm", "glc", "lnd", "ice", "ocn", "rof", "wav"):
compname = case.get_value("COMP_{}".format(comp.upper()))
comppath = os.path.join(case.get_value("EXEROOT"), comp, "obj")
if compname == "d" + comp:
Expand Down
21 changes: 21 additions & 0 deletions cime_config/stream_cdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def create_stream_xml(
data_list_file,
user_mods_file,
available_neon_data=None,
available_plumber_data=None
):
"""
Create the stream xml file and append the required stream input data to the input data list file
Expand Down Expand Up @@ -187,7 +188,17 @@ def create_stream_xml(
{"name": "NEON.NEON_PRECIP.$NEONSITE"},
err_msg="No stream_entry {} found".format(stream_name),
)
elif stream_name.startswith("PLUMBER2"):
self.stream_nodes = super(StreamCDEPS, self).get_child(
"stream_entry",
{"name": "PLUMBER2.$PLUMBER2SITE"},
err_msg="No stream_entry {} found".format(stream_name),
)
elif stream_name.startswith("CLM_USRDAT."):
if 'PLUMBER2' in stream_name:
# if PLUMBER2 is in the stream name
# we want to use PLUMBER2.PLUMBER2SITE instead of CLM_USRDAT.PLUMBER2
continue
self.stream_nodes = super(StreamCDEPS, self).get_child(
"stream_entry",
{"name": "CLM_USRDAT.$CLM_USRDAT_NAME"},
Expand Down Expand Up @@ -231,6 +242,7 @@ def create_stream_xml(
elif node_name == "stream_datafiles":
# Get the resolved stream data files
stream_vars[node_name] = ""
stream_datafiles_list = [] # to join stream_datafiles if multiple entries are present
stream_datafiles = ""
for child in self.get_children(root=node):
if (
Expand All @@ -244,6 +256,13 @@ def create_stream_xml(
os.path.join(rundir, "inputdata", "atm", neon)
+ "\n"
)
elif available_plumber_data and stream_name.startswith("PLUMBER2"):
rundir = case.get_value("RUNDIR")
for plumber in available_plumber_data:
stream_datafiles += (
os.path.join(rundir, "inputdata", "atm", plumber)
+ "\n"
)
else:
stream_datafiles = child.xml_element.text
stream_datafiles = self._resolve_values(
Expand Down Expand Up @@ -288,6 +307,8 @@ def create_stream_xml(
stream_datafiles.split("\n"), "file"
)
# endif
stream_datafiles_list.append(stream_datafiles)
stream_datafiles = "\n".join(stream_datafiles_list)
elif node_name in xml_scalar_names:
attributes["model_grid"] = case.get_value("GRID")
attributes["compset"] = case.get_value("COMPSET")
Expand Down
3 changes: 2 additions & 1 deletion cime_config/stream_definition_v2.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="model_grid" type="xs:string" />
<xs:attribute name="compset" type="xs:string" />
<xs:attribute name="compset" type="xs:string" />
<xs:attribute name="CLM_USRDAT_NAME" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Expand Down
150 changes: 0 additions & 150 deletions cime_config/testdefs/testlist_cdeps.xml

This file was deleted.

Loading