Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
289 commits
Select commit Hold shift + click to select a range
908f61d
redo esmf build
jedwards4b Aug 7, 2020
ba35a4b
redo esmf build
jedwards4b Aug 7, 2020
07c0ba9
redo esmf build
jedwards4b Aug 7, 2020
69683b9
put it together
jedwards4b Aug 7, 2020
4969e1d
tabs again
jedwards4b Aug 7, 2020
7eb7169
whitespace cleanup
jedwards4b Aug 7, 2020
b0fc9fe
reindent and try again
jedwards4b Aug 7, 2020
dd647f0
try a smaller piece
jedwards4b Aug 7, 2020
c47d196
fix indentation issues
jedwards4b Aug 7, 2020
516e500
more indentation issues
jedwards4b Aug 7, 2020
32cb41d
update fox cmake defaults
jedwards4b Aug 7, 2020
968b57c
try again
jedwards4b Aug 7, 2020
cda2c88
getting closer
jedwards4b Aug 7, 2020
c561e94
add pio build
jedwards4b Aug 7, 2020
3f972b8
add pnetcdf path
jedwards4b Aug 7, 2020
5daac89
add netcdf-fortran
jedwards4b Aug 7, 2020
08c67e9
fix syntax error
jedwards4b Aug 7, 2020
973bd40
find netcdf version
jedwards4b Aug 7, 2020
5195033
need netcdf-fortran 4.5.2
jedwards4b Aug 7, 2020
e6dc151
remove debug statement
jedwards4b Aug 7, 2020
b34d98d
another typo fixed
jedwards4b Aug 7, 2020
b116576
debug commit
jedwards4b Aug 7, 2020
88462dd
debug commit
jedwards4b Aug 7, 2020
34e4cea
update paths
jedwards4b Aug 7, 2020
981487d
restoring caches
jedwards4b Aug 7, 2020
dd95f0f
restoring caches
jedwards4b Aug 7, 2020
31e6767
add outputs
jedwards4b Aug 7, 2020
febee8e
add outputs
jedwards4b Aug 7, 2020
18294ea
add outputs
jedwards4b Aug 7, 2020
9d75383
Revert "add outputs"
jedwards4b Aug 7, 2020
59f7047
add outputs
jedwards4b Aug 7, 2020
d4bfc92
add outputs
jedwards4b Aug 7, 2020
e4aeaf9
one job?
jedwards4b Aug 7, 2020
9d8a59a
try again
jedwards4b Aug 7, 2020
654d660
now build cdeps
jedwards4b Aug 7, 2020
e937028
now build cdeps
jedwards4b Aug 7, 2020
06acde9
now build cdeps
jedwards4b Aug 7, 2020
42bcb08
add build flags
jedwards4b Aug 7, 2020
f172b16
add build flags
jedwards4b Aug 7, 2020
8de2f8d
add build flags
jedwards4b Aug 7, 2020
73dec14
add build flags
jedwards4b Aug 7, 2020
f38484d
add build flags
jedwards4b Aug 7, 2020
fbb0e1e
fix a real error
jedwards4b Aug 7, 2020
2fa1125
Merge pull request #13 from ESCOMP/add-github-actions
jedwards4b Aug 7, 2020
28c0644
more bug fixes
Aug 8, 2020
3e483ac
updates to latest cdeps
Aug 8, 2020
bfa92e3
more bug fixes
Aug 8, 2020
bb79a7f
Merge branch 'master' into feature/bug_fixes
jedwards4b Aug 8, 2020
339112c
Merge pull request #15 from ESCOMP/feature/bug_fixes
jedwards4b Aug 8, 2020
d7b8a4c
remove unused variables
jedwards4b Aug 8, 2020
5a1b060
more cleanup
jedwards4b Aug 8, 2020
b1b2697
changes to get 3d stream input working
Aug 10, 2020
246644a
clean up wav comp
jedwards4b Aug 10, 2020
9d716f9
more cleanup
jedwards4b Aug 10, 2020
1245cfa
more cleanup
jedwards4b Aug 10, 2020
f2126a3
fix errors
jedwards4b Aug 10, 2020
13c94c7
fix error
jedwards4b Aug 10, 2020
994aaa8
fix error
jedwards4b Aug 10, 2020
abd5508
fix error
jedwards4b Aug 10, 2020
dc2c91f
fix error
jedwards4b Aug 10, 2020
b798586
fix error
jedwards4b Aug 10, 2020
3db6586
fix error
jedwards4b Aug 10, 2020
b4e99c9
fix errors
jedwards4b Aug 10, 2020
7de813a
more fixes
jedwards4b Aug 10, 2020
8d55901
fix another issue
jedwards4b Aug 10, 2020
7eb6ede
use ymd instead of date
jedwards4b Aug 10, 2020
08ea63c
use ymd instead of date
jedwards4b Aug 10, 2020
23fedf3
replace bias_correction
jedwards4b Aug 10, 2020
cac4613
make esmf version env var
jedwards4b Aug 10, 2020
a680ed4
add versions to dependencies
jedwards4b Aug 10, 2020
e1f555f
fix workflow error
jedwards4b Aug 10, 2020
7c65629
fix workflow
jedwards4b Aug 10, 2020
fc1a331
Merge pull request #16 from ESCOMP/minimize_compiler_warnings
jedwards4b Aug 10, 2020
18b1d3b
merge to cdeps master
Aug 11, 2020
6a35dea
updates for documentation
Aug 11, 2020
db0a90e
Merge branch 'master' of https://github.com/ESCOMP/CDEPS
Aug 11, 2020
8ed166f
udpates for PR requests
Aug 11, 2020
60a7486
Merge branch 'master' into mvertens/cdeps3d_works
jedwards4b Aug 11, 2020
cfc5345
Merge pull request #19 from ESCOMP/mvertens/cdeps3d_works
jedwards4b Aug 11, 2020
6f33826
new stream_definition_xxx.xml
Aug 15, 2020
2023267
changes to fix aux_cdeps tests and bring in stream_cdeps.py and strea…
Aug 19, 2020
45b7a85
fixed bugs
Aug 19, 2020
d808b7c
addressed PR issues raised by Jim Edwards
Aug 20, 2020
e99ec4f
Merge pull request #21 from ESCOMP/new_stream_schema
jedwards4b Aug 20, 2020
2480ebb
fix find compiler with cime
jedwards4b Aug 26, 2020
82a2974
improve the build, remove hardcoded path
jedwards4b Sep 18, 2020
b9a3fa8
Merge pull request #27 from ESCOMP/build_improvements
jedwards4b Sep 25, 2020
8508f59
build improvements
jedwards4b Sep 25, 2020
d4394fa
fixed bug in drof JRA55 specfication for mesh file
Oct 2, 2020
e9a9660
fix GPTL issue
Oct 12, 2020
977bfda
fix stdout format issue
jedwards4b Oct 30, 2020
2c2a2be
add code to avoid clashes when building multiple cases at once
jedwards4b Nov 16, 2020
a15b267
Merge branch 'master' of https://github.com/ESCOMP/CDEPS
jedwards4b Nov 16, 2020
dc6e3f6
increase wait time
jedwards4b Nov 16, 2020
8f0a405
simplify locking
jedwards4b Nov 16, 2020
6de6963
fix issue with CMAKE_INSTALL_PATH
jedwards4b Nov 17, 2020
3726ebb
cleanup;
jedwards4b Nov 17, 2020
3985a73
fix for pgi build
jedwards4b Nov 24, 2020
f9da2a6
feature/perf_updates
Dec 4, 2020
c669b39
Merge pull request #33 from ESCOMP/feature/perf_updates
jedwards4b Dec 7, 2020
3e6b717
fix for finding PIO
Dec 11, 2020
d94eeca
fix docn if the stream only provides SST
Dec 11, 2020
6f88a90
fixes to get datm working with dynamic fraction calculation in clm
Jan 4, 2021
b38ae62
changes to get docn working with dynamic fraction calculation if mask…
Jan 4, 2021
5808cb1
fix cmake build to work with HAFS
Jan 7, 2021
2cec07f
update cmake files for dice, dlnd, drof and dwav
Jan 8, 2021
47d9ec1
update dependencies
Jan 8, 2021
0831048
fixed problem for single point cases - no mapping file will be create…
Jan 10, 2021
1739751
fixed problems related to taxmode and dtlimit for DATM%PTCLM versus j…
Jan 10, 2021
f4bec30
finished adding datm_datamode_cplhist_mod.F90
Jan 10, 2021
dd2e5d2
changes to fix memory growth problem
Jan 11, 2021
a843a9b
Merge commit 'dd2e5d2' into mvertens/dynfrac
Jan 11, 2021
f286f51
removed debug write statement
Jan 11, 2021
e66fde4
updated missing stream mesh files
Jan 13, 2021
2e77890
fixed creation of ocean mask/frac when it needs to be created
Jan 14, 2021
c6be719
Merge branch 'master' into feature/hafs_cdeps_pr
uturuncoglu Jan 14, 2021
c39dc6a
add only clause i dshr_fldlist_mod and dshr_stream_mod
jedwards4b Jan 19, 2021
bf4f9da
add only to dshr_dfield_mod
jedwards4b Jan 19, 2021
1a5f6a1
add only clause to dshr_tinterp_mod
jedwards4b Jan 19, 2021
fc49812
add only to dshr_strdata_mod
jedwards4b Jan 19, 2021
92ec4b6
Merge pull request #41 from ESCOMP/mvertens/dynfrac
mvertens Jan 19, 2021
ee60a78
Merge branch 'master' into feature/hafs_cdeps_pr
uturuncoglu Jan 19, 2021
c64e7a2
add only clause to dshr_methods_mod
jedwards4b Jan 19, 2021
5374de6
add only clause
jedwards4b Jan 19, 2021
44b8864
add more only clauses
jedwards4b Jan 19, 2021
0ef2a44
add more only clauses
jedwards4b Jan 19, 2021
736766b
add more only clauses
jedwards4b Jan 19, 2021
63f1654
add more only clauses
jedwards4b Jan 19, 2021
64337ef
add more only clauses
jedwards4b Jan 19, 2021
4dc756e
add more only clauses
jedwards4b Jan 19, 2021
ca70972
add more only clauses
jedwards4b Jan 19, 2021
5393a13
Merge branch 'master' of https://github.com/ESCOMP/CDEPS into add_onl…
jedwards4b Jan 19, 2021
05458c0
more only clauses
jedwards4b Jan 19, 2021
bc84182
more only clauses
jedwards4b Jan 19, 2021
0b3a68e
Merge pull request #43 from jedwards4b/add_only_clause
jedwards4b Jan 19, 2021
1d8b5ce
fix make build under CESM
Jan 20, 2021
7cc6735
Merge branch 'master' into feature/hafs_cdeps_pr
uturuncoglu Jan 20, 2021
c138337
more fix for cmake build under CESM
Jan 20, 2021
5da53f4
fix the standalone build outside of any application
Jan 20, 2021
3b1ec5a
Merge pull request #40 from hafs-community/feature/hafs_cdeps_pr
uturuncoglu Jan 20, 2021
e077e7f
fix typo in cmake build
uturuncoglu Jan 22, 2021
6830f20
Merge pull request #46 from ESCOMP/fix_cmake_typo
jedwards4b Jan 22, 2021
447e1b6
Merge pull request #1 from ESCOMP/master
uturuncoglu Jan 22, 2021
18d1db2
Merge branch 'master' into HEAD
Jan 25, 2021
983ae46
Merge commit '18d1db2'
Jan 25, 2021
a843433
fixed bug if scripts_regression_test
Jan 25, 2021
63fd3d5
Merge pull request #47 from ESCOMP/mvertens/bugfix
jedwards4b Jan 25, 2021
8c6b1ac
replace datm_clmncep_yr and datm_cplhist_yr with datm_yr
jedwards4b Feb 1, 2021
f36b2fe
namelist cleanup
jedwards4b Feb 1, 2021
bcd7efe
replace musgs with mg37 in cdeps tests
jedwards4b Feb 1, 2021
5db7611
Merge pull request #48 from jedwards4b/update_testlist
jedwards4b Feb 1, 2021
52b8b40
Merge branch 'master' into jedwards/namelist_cleanup
jedwards4b Feb 1, 2021
b9bb065
remove scol_mode
jedwards4b Feb 1, 2021
b278ec1
update logic for single column
jedwards4b Feb 2, 2021
1f02a73
Merge pull request #49 from jedwards4b/jedwards/namelist_cleanup
jedwards4b Feb 4, 2021
bd6b3e6
enable component level PIO initialization
Feb 18, 2021
690592a
shr_pio_mod needs to be used only with CESM
Feb 18, 2021
f6b00c6
fix for inline data components and CESM tests
Feb 19, 2021
ee0aa4c
change pio defaults and clean print statements
Feb 23, 2021
92b08b8
add support to set pio debug level
Feb 26, 2021
d5fe83d
Merge branch 'master' into feature/pio_fix_comp
uturuncoglu Feb 26, 2021
378028e
Merge pull request #52 from hafs-community/feature/pio_fix_comp
uturuncoglu Feb 27, 2021
2f11cb3
bugfixes for iradsw > 1
Feb 22, 2021
49ec807
updates to have SOMAQP working correctly
Feb 23, 2021
8517ebb
fixes for jra forcing for datm and drof
Mar 1, 2021
e4b9c55
updates for single column
Mar 9, 2021
e8c1d58
bug fixes
Mar 9, 2021
6fc0398
port to nag 6.1 fortran compiler
jedwards4b Feb 16, 2021
da0bd42
nag port
jedwards4b Feb 17, 2021
6ab7044
update include paths
jedwards4b Feb 17, 2021
b10ca28
ret should be int
jedwards4b Mar 11, 2021
4bbc650
nag port
jedwards4b Feb 17, 2021
fee300a
update include paths
jedwards4b Feb 17, 2021
76c5f04
avoid unassociated pointer
jedwards4b Mar 12, 2021
b476091
bug fixes to get single column working
Mar 12, 2021
81d24f4
replace 1x1 forcing data interpolation to bilinear from nn to be cons…
Mar 14, 2021
b91e418
Merge pull request #51 from jedwards4b/nag_port
jedwards4b Mar 15, 2021
7afec93
merge to master
Mar 15, 2021
6e89ecf
fix of argument type
Mar 16, 2021
7eedc05
removal of white space
Mar 16, 2021
87236b3
added new consistency checks for pts_lat and pts_lon
Mar 16, 2021
87b2464
fixed bug in buildnml
Mar 17, 2021
aef5362
clean up logic for single column not allowed
Mar 17, 2021
dc1b2a3
more bug fixes
Mar 17, 2021
0683261
add bumpversion to workflow
jedwards4b Mar 17, 2021
8c10dec
removed unnecessary rc check
Mar 19, 2021
65ee404
remove unneeded rc checks
jedwards4b Mar 19, 2021
ee28644
Merge pull request #54 from ESCOMP/mvertens/scol
jedwards4b Mar 19, 2021
ac51658
Merge branch 'master' into add_bump_version
jedwards4b Mar 19, 2021
6dcb4df
Merge pull request #56 from jedwards4b/add_bump_version
jedwards4b Mar 19, 2021
1954a46
add genf90 as a submodule
jedwards4b Mar 23, 2021
a7bd80d
point to genf90.pl in source
jedwards4b Mar 23, 2021
07003cd
update fox external for nag
jedwards4b Mar 24, 2021
b83be60
remove download of genf90
jedwards4b Mar 24, 2021
35c5650
Merge pull request #59 from jedwards4b/add_genf90_submodule
jedwards4b Mar 24, 2021
0961a16
Merge pull request #60 from jedwards4b/fox_nag_port
mvertens Mar 25, 2021
7eefcce
Point to new dlnd scpl forcing data
billsacks Mar 29, 2021
6fabb51
One more change needed to change years of data
billsacks Mar 30, 2021
48a26e6
Expand years in match for stream_datafiles pattern
billsacks Mar 30, 2021
9f54ef0
Merge pull request #61 from billsacks/dlnd_new_glc_forcings
billsacks Mar 30, 2021
77a2ec3
Fixes #63, two files were in NetCDF4 format and need a NetCDF5 versio…
ekluzek Mar 30, 2021
d8da129
Merge pull request #64 from ekluzek/cdf5files
mvertens Mar 31, 2021
e3179c7
changes for cmeps threading
jedwards4b Apr 2, 2021
5ac0ae1
Merge pull request #66 from jedwards4b/cmeps_threading
jedwards4b Apr 6, 2021
5561f6d
changes needed for nuopc/mct validation of E compset
Apr 9, 2021
bf33abf
remove submodules
uturuncoglu Apr 22, 2021
09bc80f
revert submodule and add genf90 as an external project
uturuncoglu Apr 22, 2021
5be2b5b
merge pr #28
jedwards4b Apr 23, 2021
de677af
new neon station stream
jedwards4b Jan 20, 2021
8c52dd7
neon datm development
jedwards4b Feb 1, 2021
8098e8a
updates for neon
jedwards4b Feb 8, 2021
62b75ba
remove debug print
jedwards4b Feb 9, 2021
d0ce173
add tag action
jedwards4b Feb 9, 2021
1b7b865
rework NEON streams
jedwards4b Feb 19, 2021
2046a0a
superceeded workflow
jedwards4b Apr 12, 2021
06f47e0
remove debug print statement
jedwards4b Apr 16, 2021
6dc9e76
fix issue with double quotes
jedwards4b Apr 23, 2021
0774dc3
add FoX using FetchContent
uturuncoglu Apr 23, 2021
eceb024
Merge pull request #50 from jedwards4b/neon_streams
jedwards4b Apr 23, 2021
17b3d04
add Externals_CDEPS.cfg for FoX and genf90
uturuncoglu Apr 25, 2021
d9008c4
fix build
uturuncoglu Apr 25, 2021
2da1322
sync with ESCOMP master
uturuncoglu Apr 26, 2021
c921814
add FoX include directory again
uturuncoglu Apr 26, 2021
1356ab0
Merge pull request #69 from uturuncoglu/remove_sub_modules
uturuncoglu Apr 27, 2021
963c1ab
this compset should not produce an ocn stream file
jedwards4b Apr 28, 2021
1b0485d
Merge branch 'master' into feature/fix_som
jedwards4b Apr 28, 2021
4c3eb25
Merge pull request #71 from jedwards4b/fix_ADSOMAQP
jedwards4b Apr 28, 2021
72b479d
Merge branch 'master' into feature/fix_som
jedwards4b Apr 28, 2021
145fb3e
Merge pull request #68 from mvertens/feature/fix_som
jedwards4b Apr 28, 2021
4c7729d
Merge remote-tracking branch 'upstream/master' into feature/update20
binli2337 Apr 29, 2021
31711d4
Remove commented code.
binli2337 Apr 30, 2021
7ff1869
try this tag change
jedwards4b Apr 30, 2021
917bba2
bump external versions, test bumpversion workflow
jedwards4b Apr 30, 2021
4d0ee88
dry run test succeeded, turn it on
jedwards4b Apr 30, 2021
a04ecd6
fix pio version
jedwards4b Apr 30, 2021
fa399fe
fix pio build
jedwards4b Apr 30, 2021
c13bede
Set default years for 1PT to 2018 to 2019, and for NEON in streams se…
ekluzek May 1, 2021
17c97c3
try adding netcdf-dev
jedwards4b May 1, 2021
c8b95e3
try adding libnetcdf-dev
jedwards4b May 1, 2021
1df6b3d
Merge pull request #77 from jedwards4b/annotated_tag
jedwards4b May 1, 2021
9830d38
Merge branch 'master' into fix_neon_years
jedwards4b May 1, 2021
d0d647f
undo pr 71, that fix was incorrect
jedwards4b May 3, 2021
8d0f499
Merge branch 'master' into feature/update20
jedwards4b May 3, 2021
3b5bc72
remove commented code
jedwards4b May 3, 2021
4085d61
Merge pull request #84 from jedwards4b/undo_pr71
jedwards4b May 3, 2021
b9a965a
Merge branch 'master' into feature/update20
jedwards4b May 3, 2021
4e46753
Merge branch 'master' into fix_neon_years
jedwards4b May 3, 2021
726f4ab
Merge pull request #81 from ekluzek/fix_neon_years
jedwards4b May 3, 2021
8242f4f
Merge branch 'master' into feature/update20
jedwards4b May 3, 2021
6ced48f
Merge pull request #73 from binli2337/feature/update20
jedwards4b May 3, 2021
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
16 changes: 7 additions & 9 deletions .github/workflows/bumpversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.26.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: minor
RELEASE_BRANCHES: master
DRY_RUN: False
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
create_annotated_tag: true
default_bump: patch
dry_run: false
14 changes: 8 additions & 6 deletions .github/workflows/extbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
CXX: mpicxx
CPPFLAGS: "-I/usr/include -I/usr/local/include"
# Versions of all dependencies can be updated here
ESMF_VERSION: ESMF_8_1_0_beta_snapshot_25
PNETCDF_VERSION: pnetcdf-1.12.1
ESMF_VERSION: ESMF_8_1_1
PNETCDF_VERSION: pnetcdf-1.12.2
NETCDF_FORTRAN_VERSION: v4.5.2
PIO_VERSION: pio-2.5.1
# These should match in number
PIO_VERSION: pio-2.5.4
PIO_VERSION_DUMB: pio2_5_4
steps:
- uses: actions/checkout@v2
# Build the ESMF library, if the cache contains a previous build
Expand All @@ -32,7 +34,7 @@ jobs:
path: ~/ESMF
key: ${{ runner.os }}-${{ env.ESMF_VERSION }}-ESMF
- id: load-env
run: sudo apt-get install gfortran wget openmpi-bin netcdf-bin libopenmpi-dev
run: sudo apt-get install gfortran wget openmpi-bin netcdf-bin libopenmpi-dev libnetcdf-dev
- id: build-ESMF
if: steps.cache-esmf.outputs.cache-hit != 'true'
run: |
Expand Down Expand Up @@ -93,11 +95,11 @@ jobs:
- name: Build PIO
if: steps.cache-PIO.outputs.cache-hit != 'true'
run: |
wget https://github.com/NCAR/ParallelIO/releases/download/pio_2_5_1/${{ env.PIO_VERSION }}.tar.gz
wget https://github.com/NCAR/ParallelIO/releases/download/${{ env.PIO_VERSION_DUMB }}/${{ env.PIO_VERSION }}.tar.gz
tar -xzvf ${{ env.PIO_VERSION }}.tar.gz
mkdir build-pio
pushd build-pio
cmake -Wno-dev -DNetCDF_C_LIBRARY=/usr/lib/x86_64-linux-gnu/libnetcdf.so -DNetCDF_C_INCLUDE_DIR=/usr/include -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=$HOME/pio -DPIO_HDF5_LOGGING=On -DPIO_USE_MALLOC=On -DPIO_ENABLE_LOGGING=On -DPIO_ENABLE_TIMING=Off -DNetCDF_Fortran_PATH=$HOME/netcdf-fortran -DPnetCDF_PATH=$HOME/pnetcdf ../${{ env.PIO_VERSION }}
cmake -Wno-dev -DNetCDF_C_LIBRARY=/usr/lib/x86_64-linux-gnu/libnetcdf.so -DNetCDF_C_INCLUDE_DIR=/usr/include -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=$HOME/pio -DPIO_HDF5_LOGGING=Off -DPIO_ENABLE_EXAMPLES=Off -DPIO_ENABLE_LOGGING=Off -DPIO_ENABLE_TIMING=Off -DNetCDF_Fortran_PATH=$HOME/netcdf-fortran -DPnetCDF_PATH=$HOME/pnetcdf ../${{ env.PIO_VERSION }}
make VERBOSE=1
make install
popd
Expand Down
23 changes: 21 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.10)
include(ExternalProject)
include(FetchContent)

if (DEFINED CIMEROOT)
message("Using CIME in ${CIMEROOT} with compiler ${COMPILER}")
Expand Down Expand Up @@ -55,11 +56,29 @@ if(BLD_STANDALONE)
endif()
if("${COMPILER}" STREQUAL "nag")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -D__NAG__")
endif()
add_subdirectory(fox)
endif()
add_subdirectory(streams)
add_subdirectory(dshr)

if(IS_DIRECTORY "${PROJECT_SOURCE_DIR}/fox")
message(STATUS "FoX library is already checked out!")
message(STATUS "FoX source dir: ${PROJECT_SOURCE_DIR}/fox")
else()
FetchContent_Declare(fox
GIT_REPOSITORY https://github.com/ESMCI/fox.git
GIT_TAG 4.1.2.1
SOURCE_DIR ${PROJECT_SOURCE_DIR}/fox
BINARY_DIR ${PROJECT_SOURCE_DIR}
)
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)

foreach(COMP datm dice dlnd docn drof dwav)
add_subdirectory("${COMP}")
endforeach(COMP)
Expand Down
16 changes: 16 additions & 0 deletions Externals_CDEPS.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[fox]
tag = 4.1.2.1
protocol = git
repo_url = https://github.com/ESMCI/fox.git
local_path = fox
required = True

[genf90]
tag = 4816965
protocol = git
repo_url = https://github.com/PARALLELIO/genf90
local_path = share/genf90
required = True

[externals_description]
schema_version = 1.0.0
1 change: 1 addition & 0 deletions datm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(SRCFILES atm_comp_nuopc.F90
datm_datamode_cfsr_mod.F90
datm_datamode_era5_mod.F90)


foreach(FILE ${SRCFILES})
if(EXISTS "${CASEROOT}/SourceMods/src.datm/${FILE}")
list(REMOVE_ITEM SRCFILES ${FILE})
Expand Down
4 changes: 2 additions & 2 deletions datm/cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
<valid_values></valid_values>
<default_value>2004</default_value>
<values match="last">
<value compset="2000.*_DATM%1PT">1972</value>
<value compset="2000.*_DATM%1PT">2018</value>
<value compset="1850.*_DATM%QIA">1948</value>
<value compset="1850.*_DATM%CRU">1901</value>
<value compset="1850.*_DATM%GSW">1901</value>
Expand Down Expand Up @@ -248,7 +248,7 @@
<valid_values></valid_values>
<default_value>2004</default_value>
<values match="last">
<value compset="2000.*_DATM%1PT">2004</value>
<value compset="2000.*_DATM%1PT">2019</value>
<value compset="1850.*_DATM%QIA">1972</value>
<value compset="1850.*_DATM%CRU">1920</value>
<value compset="1850.*_DATM%GSW">1920</value>
Expand Down
8 changes: 4 additions & 4 deletions datm/cime_config/stream_definition_datm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<meshfile>none</meshfile>
</stream_meshfile>
<stream_datafiles>
<file first_year="2018" last_year="2019">$DIN_LOC_ROOT/atm/cdeps/v1/$NEONSITE/%ym.nc</file>
<file first_year="$DATM_YR_START" last_year="$DATM_YR_END">$DIN_LOC_ROOT/atm/cdeps/v1/$NEONSITE/%ym.nc</file>
</stream_datafiles>
<stream_datavars>
<var>PRECTmms Faxa_precn</var>
Expand All @@ -220,9 +220,9 @@
<mapalgo>none</mapalgo>
</stream_mapalgo>
<stream_vectors>null</stream_vectors>
<stream_year_align>2018</stream_year_align>
<stream_year_first>2018</stream_year_first>
<stream_year_last>2019</stream_year_last>
<stream_year_align>$DATM_YR_ALIGN</stream_year_align>
<stream_year_first>$DATM_YR_START</stream_year_first>
<stream_year_last>$DATM_YR_END</stream_year_last>
<stream_offset>0</stream_offset>
<stream_tintalgo>
<tintalgo>linear</tintalgo>
Expand Down
22 changes: 8 additions & 14 deletions datm/datm_datamode_cfsr_mod.F90
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module datm_datamode_cfsr_mod

use ESMF
use ESMF , only : ESMF_State, ESMF_SUCCESS, ESMF_LogWrite, ESMF_LOGMSG_INFO
use NUOPC , only : NUOPC_Advertise
use shr_kind_mod , only : r8=>shr_kind_r8, i8=>shr_kind_i8, cl=>shr_kind_cl, cs=>shr_kind_cs
use shr_sys_mod , only : shr_sys_abort
Expand All @@ -21,7 +21,6 @@ module datm_datamode_cfsr_mod
public :: datm_datamode_cfsr_advance
public :: datm_datamode_cfsr_restart_write
public :: datm_datamode_cfsr_restart_read
! private :: datm_eSat ! determine saturation vapor pressure

! export state data
real(r8), pointer :: Sa_z(:) => null()
Expand All @@ -32,19 +31,19 @@ module datm_datamode_cfsr_mod
real(r8), pointer :: Sa_pbot(:) => null()
real(r8), pointer :: Sa_u10m(:) => null()
real(r8), pointer :: Sa_v10m(:) => null()
real(r8), pointer :: Sa_t2m(:) => null()
real(r8), pointer :: Sa_q2m(:) => null()
real(r8), pointer :: Sa_t2m(:) => null()
real(r8), pointer :: Sa_q2m(:) => null()
real(r8), pointer :: Sa_pslv(:) => null()
real(r8), pointer :: Faxa_lwdn(:) => null()
real(r8), pointer :: Faxa_rain(:) => null()
real(r8), pointer :: Faxa_snow(:) => null()
real(r8), pointer :: Faxa_snow(:) => null()
real(r8), pointer :: Faxa_swndr(:) => null()
real(r8), pointer :: Faxa_swndf(:) => null()
real(r8), pointer :: Faxa_swvdr(:) => null()
real(r8), pointer :: Faxa_swvdf(:) => null()

! stream data
real(r8), pointer :: strm_mask(:) => null()
real(r8), pointer :: strm_mask(:) => null()

real(r8) :: tbotmax ! units detector
real(r8) :: maskmax ! units detector
Expand Down Expand Up @@ -86,11 +85,11 @@ subroutine datm_datamode_cfsr_advertise(exportState, fldsexport, &
call dshr_fldList_add(fldsExport, 'Sa_shum' )
call dshr_fldList_add(fldsExport, 'Sa_u10m' )
call dshr_fldList_add(fldsExport, 'Sa_v10m' )
call dshr_fldList_add(fldsExport, 'Sa_t2m' )
call dshr_fldList_add(fldsExport, 'Sa_q2m' )
call dshr_fldList_add(fldsExport, 'Sa_t2m' )
call dshr_fldList_add(fldsExport, 'Sa_q2m' )
call dshr_fldList_add(fldsExport, 'Sa_pslv' )
call dshr_fldList_add(fldsExport, 'Faxa_rain' )
call dshr_fldList_add(fldsExport, 'Faxa_snow' )
call dshr_fldList_add(fldsExport, 'Faxa_snow' )
call dshr_fldList_add(fldsExport, 'Faxa_swndr' )
call dshr_fldList_add(fldsExport, 'Faxa_swvdr' )
call dshr_fldList_add(fldsExport, 'Faxa_swndf' )
Expand Down Expand Up @@ -184,8 +183,6 @@ subroutine datm_datamode_cfsr_advance(exportstate, masterproc, logunit, mpicom,
integer :: lsize ! size of attr vect
real(r8) :: rtmp
real(r8) :: tbot, pbot
! real(r8) :: vp
real(r8) :: e, qsat
character(len=*), parameter :: subname='(datm_datamode_cfsr_advance): '
!-------------------------------------------------------------------------------

Expand All @@ -209,9 +206,6 @@ subroutine datm_datamode_cfsr_advance(exportstate, masterproc, logunit, mpicom,
end if

do n = 1, lsize
!--- bottom layer height ---
! Sa_z(n) = 10.0_r8

!--- temperature ---
if (tbotmax < 50.0_r8) Sa_tbot(n) = Sa_tbot(n) + tkFrz
! Limit very cold forcing to 180K
Expand Down
22 changes: 8 additions & 14 deletions datm/datm_datamode_gefs_mod.F90
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module datm_datamode_gefs_mod

use ESMF
use ESMF , only : ESMF_State, ESMF_SUCCESS, ESMF_LogWrite, ESMF_LOGMSG_INFO
use NUOPC , only : NUOPC_Advertise
use shr_kind_mod , only : r8=>shr_kind_r8, i8=>shr_kind_i8, cl=>shr_kind_cl, cs=>shr_kind_cs
use shr_sys_mod , only : shr_sys_abort
Expand All @@ -21,7 +21,6 @@ module datm_datamode_gefs_mod
public :: datm_datamode_gefs_advance
public :: datm_datamode_gefs_restart_write
public :: datm_datamode_gefs_restart_read
! private :: datm_eSat ! determine saturation vapor pressure

! export state data
real(r8), pointer :: Sa_z(:) => null()
Expand All @@ -32,19 +31,19 @@ module datm_datamode_gefs_mod
real(r8), pointer :: Sa_pbot(:) => null()
real(r8), pointer :: Sa_u10m(:) => null()
real(r8), pointer :: Sa_v10m(:) => null()
real(r8), pointer :: Sa_t2m(:) => null()
real(r8), pointer :: Sa_q2m(:) => null()
real(r8), pointer :: Sa_t2m(:) => null()
real(r8), pointer :: Sa_q2m(:) => null()
real(r8), pointer :: Sa_pslv(:) => null()
real(r8), pointer :: Faxa_lwdn(:) => null()
real(r8), pointer :: Faxa_rain(:) => null()
real(r8), pointer :: Faxa_snow(:) => null()
real(r8), pointer :: Faxa_snow(:) => null()
real(r8), pointer :: Faxa_swndr(:) => null()
real(r8), pointer :: Faxa_swndf(:) => null()
real(r8), pointer :: Faxa_swvdr(:) => null()
real(r8), pointer :: Faxa_swvdf(:) => null()

! stream data
real(r8), pointer :: strm_mask(:) => null()
real(r8), pointer :: strm_mask(:) => null()

real(r8) :: tbotmax ! units detector
real(r8) :: maskmax ! units detector
Expand Down Expand Up @@ -86,11 +85,11 @@ subroutine datm_datamode_gefs_advertise(exportState, fldsexport, &
call dshr_fldList_add(fldsExport, 'Sa_shum' )
call dshr_fldList_add(fldsExport, 'Sa_u10m' )
call dshr_fldList_add(fldsExport, 'Sa_v10m' )
call dshr_fldList_add(fldsExport, 'Sa_t2m' )
call dshr_fldList_add(fldsExport, 'Sa_q2m' )
call dshr_fldList_add(fldsExport, 'Sa_t2m' )
call dshr_fldList_add(fldsExport, 'Sa_q2m' )
call dshr_fldList_add(fldsExport, 'Sa_pslv' )
call dshr_fldList_add(fldsExport, 'Faxa_rain' )
call dshr_fldList_add(fldsExport, 'Faxa_snow' )
call dshr_fldList_add(fldsExport, 'Faxa_snow' )
call dshr_fldList_add(fldsExport, 'Faxa_swndr' )
call dshr_fldList_add(fldsExport, 'Faxa_swvdr' )
call dshr_fldList_add(fldsExport, 'Faxa_swndf' )
Expand Down Expand Up @@ -184,8 +183,6 @@ subroutine datm_datamode_gefs_advance(exportstate, masterproc, logunit, mpicom,
integer :: lsize ! size of attr vect
real(r8) :: rtmp
real(r8) :: tbot, pbot
! real(r8) :: vp
real(r8) :: e, qsat
character(len=*), parameter :: subname='(datm_datamode_gefs_advance): '
!-------------------------------------------------------------------------------

Expand All @@ -209,9 +206,6 @@ subroutine datm_datamode_gefs_advance(exportstate, masterproc, logunit, mpicom,
end if

do n = 1, lsize
!--- bottom layer height ---
! Sa_z(n) = 10.0_r8

!--- temperature ---
if (tbotmax < 50.0_r8) Sa_tbot(n) = Sa_tbot(n) + tkFrz
! Limit very cold forcing to 180K
Expand Down
2 changes: 1 addition & 1 deletion dice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ add_library(dice ${SRCFILES})

add_dependencies(dice dshr streams)
target_include_directories (dice PRIVATE ${ESMF_F90COMPILEPATHS})
target_include_directories (dice PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../fox/include")
target_include_directories (dice PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../dshr")
target_include_directories (dice PRIVATE "${CMAKE_SOURCE_DIR}")
target_include_directories (dice PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../share")
target_include_directories (dice PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../streams")
target_include_directories (dice PRIVATE "${PIO_Fortran_INCLUDE_DIR}")
target_include_directories (dice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../fox/include)
3 changes: 2 additions & 1 deletion docn/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path

if case.get_value('PTS_LON'):
scol_lon = float(case.get_value('PTS_LON'))
else:
else:
scol_lon = -999.
if case.get_value('PTS_LAT'):
scol_lat = float(case.get_value('PTS_LAT'))
Expand All @@ -90,6 +90,7 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path
nmlgen.write_output_file(namelist_file, data_list_path, groups=['docn_nml'])

# Generate docn.streams.xml if needed
print("docn_mode is {}".format(docn_mode))
if (re.search(r'sst_aquap[0-9]+',docn_mode) is not None) or (docn_mode == 'sst_aquap_constant'):
generate_stream_file = False
else:
Expand Down
12 changes: 8 additions & 4 deletions docn/docn_datamode_som_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,14 @@ subroutine docn_datamode_som_advance(importState, exportState, clock, restart_re
dt = idt * 1.0_r8

do n = 1,lsize
if (.not. restart_read) then
somtp(n) = So_t(n) + TkFrz
endif
So_t(n) = somtp(n)
if (So_omask(n) /= 0._r8) then
if (.not. restart_read) then
somtp(n) = So_t(n) + TkFrz
endif
So_t(n) = somtp(n)
else
So_t(n) = 0._r8
end if
Fioo_q(n) = 0.0_R8
enddo

Expand Down
23 changes: 21 additions & 2 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,27 @@ target_include_directories (cdeps_share PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${ES
install(TARGETS cdeps_share
LIBRARY DESTINATION lib)
#===== genf90 =====
set(GENF90_PATH ${CMAKE_CURRENT_SOURCE_DIR}/genf90)
add_custom_target(genf90 DEPENDS ${GENF90_PATH}/genf90.pl)
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/genf90")
message(STATUS "genf90 library is already checked out!")
message(STATUS "genf90 source dir: ${CMAKE_CURRENT_SOURCE_DIR}/genf90")
set(GENF90_PATH ${CMAKE_CURRENT_SOURCE_DIR}/genf90)
endif()
if (DEFINED GENF90_PATH)
add_custom_target(genf90
DEPENDS ${GENF90_PATH}/genf90.pl)
else ()
ExternalProject_Add (genf90
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/genf90
GIT_REPOSITORY https://github.com/PARALLELIO/genf90
GIT_TAG genf90_200608
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND "")
ExternalProject_Get_Property (genf90 SOURCE_DIR)
set (GENF90_PATH ${SOURCE_DIR})
unset (SOURCE_DIR)
endif ()
add_dependencies (cdeps_share genf90)

#===== Fortran Source Generation with GenF90 =====
Expand Down
1 change: 1 addition & 0 deletions streams/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if(BLD_STANDALONE)
add_dependencies(streams cdeps_share)
endif()


target_include_directories (streams PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../fox/include)
target_include_directories (streams PRIVATE ${ESMF_F90COMPILEPATHS})
target_include_directories (streams PRIVATE ${PIO_Fortran_INCLUDE_DIR})
Expand Down