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

cmeps directory refactor #256

Merged
merged 1,300 commits into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1300 commits
Select commit Hold shift + click to select a range
6fb7434
fix bug in SCAM
cacraigucar Sep 17, 2019
fb4c8cd
Merge with master, conflicts removed
fischer-ncar Sep 18, 2019
71e2e91
Merge branch 'jackreeveseyre/cime/sfc_flux_bug_fix'(PR #3153)
singhbalwinder Sep 20, 2019
251c73b
Update CIME to ESMCI cime5.8.9 (PR #3201)
jgfouca Sep 26, 2019
9d7ace3
Add namelist for minimum wind speed for atmOcn fluxes
cacraigucar Sep 27, 2019
db1b389
Merge pull request #3251 from cacraigucar/atmOcn_wind
fischer-ncar Sep 30, 2019
4b16ea2
Change globally uniform SST mode from AQP11 to AQPCONST
whannah1 Oct 10, 2019
61bb6ae
Fix conflicts to merge maint-5.6 into master
fischer-ncar Oct 11, 2019
491394c
Merge pull request #3257 from ESMCI/whannah/add-AQPCONST-mode
jedwards4b Oct 18, 2019
577a4be
cherry-pick AQPCONST change - hash f610e9413f92
cacraigucar Oct 22, 2019
a5a8a67
Merge esmci_remote_for_split/master
jgfouca Oct 25, 2019
2adc258
Update CIME to ESMCI cime5.8.13 (#3261)
jgfouca Oct 30, 2019
94cd2d8
changes to be compatible with the latest cmeps PR to master
Oct 31, 2019
eea7b71
changes to be compatible with the latest cmeps PR to master
Oct 31, 2019
899593f
removed added files that are cmeps mediator specific and do not belon…
Nov 1, 2019
28c5c2e
removed added files that are cmeps mediator specific and do not belon…
Nov 1, 2019
d59511e
clean up shr_const_mod
jedwards4b Nov 1, 2019
cecdf8a
clean up some multiple defines of kinds
jedwards4b Nov 1, 2019
f1706bc
fix typos
jedwards4b Nov 1, 2019
5a9a829
Merge branch 'master' into shr_code_cleanup
jedwards4b Nov 1, 2019
ad91493
updates needed for adding both new as well as updated externals
Nov 8, 2019
71040a3
updates needed for adding both new as well as updated externals
Nov 8, 2019
68df042
Fix erroneous memset calls
worleyph Dec 10, 2019
607983a
Fix memory highwater and usage reporting
amametjanov Dec 12, 2019
02cef91
Convert memusage numbers to uniform kilobytes
amametjanov Dec 12, 2019
aeb3e7e
Fix macro
amametjanov Dec 13, 2019
b0205ca
Merge branch 'azamat/gptl/fix-mem-usage' (PR #3361)
AaronDonahue Dec 19, 2019
d62003a
Added new namelist var constant_zenith_deg
whannah1 Dec 20, 2019
fab76d8
updates to perf_mod to partially address threading issues with ESMF
Jan 3, 2020
da610db
Add threadprivate declaration and remove critical sections
worleyph Jan 17, 2020
cf8d3d5
Document when shr_sys_irtc can be used in multi-threaded region
worleyph Jan 19, 2020
830d436
Merge branch 'whannah/atm/add-global-RCEMIP-compset' (PR #3371)
rljacob Feb 12, 2020
0b485eb
First step of maint-5.6 merge
fischer-ncar Feb 18, 2020
ff4fc87
port to ncar system thunder
jedwards4b Mar 9, 2020
f2d879e
first set of bug fixes for running Vnuopc prealpha tests
Mar 15, 2020
89be684
first set of bug fixes for running Vnuopc prealpha tests
Mar 15, 2020
9336288
Merge esmci_remote_for_split/master
jgfouca Mar 16, 2020
473031c
changes to get B1850 compset working
Mar 17, 2020
eb82196
changes to get B1850 compset working
Mar 17, 2020
8d986b7
GH comments
amametjanov Mar 19, 2020
6eb6f6f
fix threading issues
jedwards4b Mar 20, 2020
16591f5
use shrmap by reference instead of copy
jedwards4b Mar 31, 2020
ab39a5a
Merge pull request #3484 from ESMCI/mvertens/nuopc_bugfixes
jedwards4b Apr 8, 2020
262250a
remove unneeded !
jedwards4b Apr 15, 2020
baec2a4
Merge pull request #3470 from jedwards4b/shr_map_getARptr
jedwards4b Apr 15, 2020
27ff80a
merged dshr_nuopc_mod and dshr_methods_mod into dshr_mod
Apr 18, 2020
52160ae
introduced new directory share/streams_nuopc and moved dshr_strdata_m…
Apr 20, 2020
ee412f9
moved routines from dshr_mod to dshr_strdata_mod
Apr 20, 2020
0731e50
moved two routines from dshr_mod to dshr_strdata_mod
Apr 20, 2020
d286f3e
removed sdat%avs(:) and introduced the sdat%fldbun_model(:) instead a…
Apr 21, 2020
22d6d56
cleaned up single column functionality - the same code now needs to b…
Apr 22, 2020
419fe0f
Merge branch 'jgfouca/branch-for-to-acme-2020-04-14' into master (PR …
jgfouca Apr 21, 2020
64a5ef8
Merge branch 'jgfouca/branch-for-to-acme-2020-04-14' into master (PR …
jgfouca Apr 21, 2020
d8a0403
fix issue with mpi-serial io
jedwards4b Apr 22, 2020
f0a9378
more changes to fix bugs
Apr 24, 2020
45c54d4
fixed problems with data model fields that need to determine fraction…
Apr 26, 2020
d68cf3e
next steps to migrate to full ESMF capability for data model share code
Apr 27, 2020
f3b49eb
Merge branch 'master' into mvertens/dmodels_refactor_to_esmfpre
Apr 27, 2020
d640fee
fixed bug
Apr 28, 2020
12a10a4
Copy changes from standalone CIME to shr_mem_mod
jgfouca Apr 28, 2020
a6070b6
Merge pull request #3505 from ESMCI/mvertens/dmodels_refactor_to_esmfpre
jedwards4b Apr 29, 2020
d492b47
Add more error-checking
amametjanov Apr 30, 2020
f0b92cc
total refactor to esmf first steps
May 2, 2020
2aca333
next set of changes - problems still exist
May 4, 2020
144eb2d
more commits
May 5, 2020
a59ff8c
more fixes for ESMF refactorization
May 5, 2020
e1519d2
updates to scheme for stream text files
May 5, 2020
c0545f7
update esmf, bcast filenames
jedwards4b May 6, 2020
6e53f88
Missing credit in shr_flux_atmOcn
mt5555 May 6, 2020
e2d2854
git compset with datm and docn working - but bugs are still there in …
May 8, 2020
64318e1
next steps in migrating data models
May 11, 2020
c87f723
change strdata data structures, passes against refactor baseline
jedwards4b May 12, 2020
71035b8
passing SMS_Vnuopc.f09_g17.1850_SATM_DLND%SCPL_SICE_SOCN_SROF_SGLC_SW…
jedwards4b May 13, 2020
a7bf8c8
changes to update drof and dice -drof not ready yet
May 13, 2020
b66b31f
merge of changes from mvertens
May 14, 2020
b9e4fe4
add new stream structures for datm
jedwards4b May 14, 2020
97fb99d
Merge esmci_remote_for_split/master
jgfouca May 15, 2020
595721d
Merge esmci_remote_for_split/master
jgfouca May 15, 2020
8906608
fixes to get the data model output have the right fields
May 16, 2020
c74624b
first steps in cleanup of dshr_dfield_mod.F90
May 17, 2020
21b068b
removed DEBUG statements
May 17, 2020
19f0a7c
updates to get docn working
May 18, 2020
0454810
addition of drof
May 19, 2020
8d771d1
more cleanup
May 19, 2020
74b7d79
more cleanup
May 19, 2020
b15fe03
yet more cleanup
May 19, 2020
fe8270c
clean up of dshr_stream_mod.F90 and update of inline interface
May 20, 2020
d464ec8
removed use of shr_log_unit from dshr_strdata.F90
May 21, 2020
314b049
remove reference to shr_log_unit
May 21, 2020
10c7e5d
refactored but broken
jedwards4b May 21, 2020
9298e44
aquap test SMS_Vnuopc_Ln5.ne16_ne16_mg17.QPC4.cheyenne_intel.cam-nuop…
jedwards4b May 22, 2020
a5fcc8d
bug fixes primarily in dshr_dfield_mod.F90
May 24, 2020
3aea56a
changes to get datm working including restarts
May 25, 2020
b277dc2
updates to get interfaces correct
May 26, 2020
d5d385f
more data model cleanup
jedwards4b May 26, 2020
ec98f88
more cleanup
jedwards4b May 26, 2020
5b66232
more cleanup
jedwards4b May 26, 2020
0bfe2f7
cleanup
jedwards4b May 26, 2020
0b17d0c
more bug fixes
May 27, 2020
7138ef3
Allow gptl build to recognize ESMF_LIBDIR
billsacks May 27, 2020
ccc0fcc
updates to fix compile problems
May 28, 2020
20c77d2
updates to get dwav and dlnd working
May 29, 2020
2c41d33
Update CIME to ESMCI cime5.8.23 (#3603)
jgfouca May 29, 2020
7067f23
updates to dry deposition data
fvitt May 29, 2020
0007a39
updates to dry deposition data
fvitt May 29, 2020
42969a7
changes to get docn running at f09_f09_mg17
May 30, 2020
8927494
fixed problem in mapping
Jun 1, 2020
e48ded1
more cleanup of dshr_strdata_mod
jedwards4b May 27, 2020
4c47344
refactor to remove netcdf and use pio
jedwards4b May 27, 2020
0c40516
work on vector streams
jedwards4b May 28, 2020
0f6df32
fix issues with stream ingest
jedwards4b May 29, 2020
4907ba8
clean up vector stream code
jedwards4b Jun 1, 2020
343f2e9
resolve merge conflicts
jedwards4b Jun 1, 2020
9528753
reset debug flag
jedwards4b Jun 1, 2020
a1266fc
remove dead code
jedwards4b Jun 1, 2020
0bc6bdf
fix restart issue
jedwards4b Jun 3, 2020
d4e1e40
fixed setting for regridstore
Jun 4, 2020
134ff3a
fix issue with stream datatype
jedwards4b Jun 4, 2020
1688592
do restart in netcdf
jedwards4b Jun 4, 2020
7d75fe1
remove binary stream history files
jedwards4b Jun 4, 2020
c3225f0
set havedata flag on restart
jedwards4b Jun 5, 2020
1e84bab
fix issues in testing
jedwards4b Jun 5, 2020
ddd9cd0
revert genf90 for pio1 and use other copy for pio2
jedwards4b Jun 9, 2020
34c6922
Merge pull request #3557 from fvitt/drydep_cime5.8.23
jedwards4b Jun 10, 2020
17d3765
Merge pull request #3557 from fvitt/drydep_cime5.8.23
jedwards4b Jun 10, 2020
d39dd3d
merge to master
Jun 11, 2020
029564c
Merge branch 'master' into esmf_datamodels
Jun 11, 2020
eb42c03
add short data type and decompression for era5
jedwards4b Jun 11, 2020
f96651b
remove nuopc data models to new repo CDEPS
jedwards4b Jun 16, 2020
53b0f4d
fix print format issue and turn off debug flags
jedwards4b Jun 18, 2020
da46cf9
set PIO_REARR_COMM_TYPE: coll for mpi-serial
jedwards4b Jun 26, 2020
8d860fd
a better approach
jedwards4b Jun 28, 2020
d5f72dd
Re-introduce CIME auto settings for max pend reqs
jayeshkrishna Jun 29, 2020
03d5fce
Log rearranger options after CIME updates
jayeshkrishna Jun 29, 2020
4bbeff1
Update log msgs related to max pending reqs
jayeshkrishna Jun 30, 2020
6994ac2
Merge esmci_remote_for_split/master
jgfouca Jul 7, 2020
19d06fe
Remove stuff that should not have been re-added
jgfouca Jul 8, 2020
ac3205f
add gmake strip to SMP
jedwards4b Jul 13, 2020
e8ef46f
Merge pull request #3600 from jedwards4b/gptl_threaded
jedwards4b Jul 14, 2020
6b2d705
Update CIME to ESMCI cime5.8.28 (PR #3696)
jgfouca Jul 15, 2020
2ad59b8
Update CIME to ESMCI cime5.8.28 (PR #3696)
jgfouca Jul 15, 2020
9e4239a
Merge esmci_remote_for_split/master
jgfouca Jul 16, 2020
eb2a524
Merge esmci_remote_for_split/master
jgfouca Jul 16, 2020
f6cd66c
CIME changes to support SCREAM
jgfouca Jul 20, 2020
1c862ab
Avoid artificial limit on string lengths in shr_string_listMerge
billsacks Aug 24, 2020
40d4b0d
fix issues with openmp region, cdeps build and cam_dycore
jedwards4b Nov 16, 2020
4b00ef6
changes for esmf aware threading
jedwards4b Dec 2, 2020
54d24b3
back out esmf version
jedwards4b Dec 2, 2020
c887d5f
Update OS process id error-checking GPTL's get_memusage
amametjanov Dec 9, 2020
02f497f
Merge pull request #3781 from ESMCI/azamat/gptl/increase-pid-ceiling
jgfouca Dec 9, 2020
d544153
fix issues with pio2 and seq_io
jedwards4b Dec 18, 2020
27b46c8
pio_async interface passed first ERS test
jedwards4b Dec 23, 2020
4bb300f
update pio for async functionality, add scripts support
jedwards4b Dec 28, 2020
af0c6e3
update pio for async functionality, add scripts support
jedwards4b Dec 28, 2020
58a520b
fix issues found in testing
jedwards4b Dec 28, 2020
3bdf21d
changes necessary to have aux_clm tests pass
Jan 11, 2021
7b03f18
took out debug writes
Jan 12, 2021
0d5b375
Merge branch 'master' into mvertens/dynfrac
Jan 13, 2021
c43513d
Fix calc. for max. number of levels when using noI8 and update comments
worleyph Jan 27, 2021
eaa9633
Merge pull request #3839 from ESMCI/worleyph/reprosum_i4_fix
jgfouca Jan 27, 2021
a505cce
Fix calc. for max. number of levels when using noI8 and update comments
worleyph Jan 27, 2021
b70818f
Merge remote-tracking branch 'origin/master' into mvertens/bugfixes_a…
Feb 1, 2021
9d22b2b
fix merge issue and log_level initialization
jedwards4b Feb 17, 2021
fb198f9
remove debug print statement
jedwards4b Feb 18, 2021
55bb9fc
make 64bit data default format
jedwards4b Feb 23, 2021
ded197e
fix unit test
jedwards4b Mar 1, 2021
c853cec
Merge pull request #3870 from jedwards4b/make_64bit_data_default
jedwards4b Mar 1, 2021
4fa8ebc
Add acc directives to gamma function
sjsprecious Mar 27, 2021
14451d3
Remove unwanted directories and move esmf_wrf_timemgr
fischer-ncar Apr 9, 2021
546af82
Removing unused fortran module.
fischer-ncar Apr 9, 2021
f1d17a8
Add build script, and mv util to src.
fischer-ncar Apr 13, 2021
42a2afa
Move location of cpl7
fischer-ncar Apr 20, 2021
3bbf77b
Seperate nuopc F90 files from cime.
fischer-ncar Apr 22, 2021
03f2726
Bring in nuopc F90 files from cime.
fischer-ncar Apr 22, 2021
abe8ecd
Add gitignore and fix nuopc build paths.
fischer-ncar Apr 23, 2021
c535b13
First attempt at github action.
fischer-ncar Apr 27, 2021
d17d8d9
Try 2
fischer-ncar Apr 27, 2021
e7c5be7
Setting up actions.
fischer-ncar Apr 27, 2021
56e8296
Setting up actions.
fischer-ncar Apr 27, 2021
c2b88df
Setting up github actions.
fischer-ncar Apr 27, 2021
9aea356
Setting up github actions.
fischer-ncar Apr 27, 2021
faf529a
Setting up github actions.
fischer-ncar Apr 27, 2021
4c4b6e6
Setting up github actions.
fischer-ncar Apr 27, 2021
98758ba
Setting up github actions.
fischer-ncar Apr 27, 2021
636307f
Setting up github actions.
fischer-ncar Apr 27, 2021
4c2ee30
Test github actions.
fischer-ncar Apr 28, 2021
1d56101
Test github actions.
fischer-ncar Apr 28, 2021
3d0e8bb
Test github actions.
fischer-ncar Apr 28, 2021
3387cd9
Test github actions.
fischer-ncar Apr 28, 2021
6558d88
Test github actions.
fischer-ncar Apr 28, 2021
78f4f42
Fix github workflow.
fischer-ncar Apr 28, 2021
129770f
Fix github workflow.
fischer-ncar Apr 28, 2021
52b36ee
Fix github workflow.
fischer-ncar Apr 28, 2021
d7ca59d
Fix github workflow.
fischer-ncar Apr 28, 2021
9f7e33a
Setting up github actions.
fischer-ncar Apr 28, 2021
5ed27ba
Setting up github actions.
fischer-ncar Apr 28, 2021
0fe48e9
Setting up github actions.
fischer-ncar Apr 28, 2021
a74174d
Setting up github actions.
fischer-ncar Apr 28, 2021
1838c07
Setting up github actions.
fischer-ncar Apr 28, 2021
b9107bb
Setting up github actions.
fischer-ncar Apr 28, 2021
9b7c6ae
Setting up github actions.
fischer-ncar Apr 28, 2021
6851ce4
Setting up github actions.
fischer-ncar Apr 28, 2021
c77b9e3
Switch to python3.
fischer-ncar May 4, 2021
dcc37a3
update workflow
fischer-ncar May 4, 2021
0f5c22d
python3
fischer-ncar Jun 23, 2021
9d49ed5
Add license.
fischer-ncar Jun 23, 2021
2a76880
add CIMEROOT
jedwards4b Jun 30, 2021
1ddbcc4
Merge branch 'main' into fischer/python_LICENSE
fischer-ncar Jun 30, 2021
01deb90
Merge pull request #2 from ESCOMP/fischer/python_LICENSE
fischer-ncar Jun 30, 2021
1c0e1fd
code to use HPE smartredis
jedwards4b Jul 8, 2021
6a0f4d7
add error message if REDIS_HOME not set
jedwards4b Jul 15, 2021
82006bf
Add module to read ozone_coupling_nl
billsacks Jul 15, 2021
88502ed
clean up, add more error checks
jedwards4b Jul 16, 2021
ee58d15
add a stub interface
jedwards4b Jul 19, 2021
bfce319
update stub and use module
jedwards4b Jul 20, 2021
dd57edb
add comment
jedwards4b Jul 22, 2021
16097a6
Rename values of atm_ozone_frequency namelist option
billsacks Jul 29, 2021
2e6406d
Merge pull request #4 from billsacks/pass_ozone
billsacks Aug 9, 2021
9c20fd9
Merge pull request #5 from jedwards4b/jedwards/smartsim
jedwards4b Aug 17, 2021
15976a7
nag did not like dimension(..)
jedwards4b Aug 19, 2021
54b6a3b
Merge pull request #6 from jedwards4b/revert_f2008_in_stubs
jedwards4b Aug 19, 2021
c842625
shr_flux_mod change
jedwards4b Aug 31, 2021
d3486f3
Merge pull request #7 from jedwards4b/shr_flux_limit_fix
jedwards4b Sep 1, 2021
477ff83
Fix github actions (#12)
fischer-ncar Sep 22, 2021
614e1ac
Remove reference to Argonne and Sandia. (#14)
fischer-ncar Oct 26, 2021
473ccf0
moved shr_flux_mod to cmeps
Nov 11, 2021
7188b11
pruned directory tree
Nov 11, 2021
cdf781d
removed .gitignore
Nov 11, 2021
cbf2dcf
Merge branch 'feature/share_prune' into feature/refactor_directories
Nov 11, 2021
71a26c8
more cesm directory refactor
Nov 11, 2021
2fe670f
moved shr_flux_mod to flux_atmocn_mod in its own directory
Nov 11, 2021
477a051
cleanup of flux_atmocn_mod
Nov 11, 2021
13c9f1f
renamed util to ufs
Nov 11, 2021
5cb7411
changes needed for new directory restructuring
Nov 11, 2021
c17dbca
moved files into ufs
Nov 11, 2021
e8ffeac
pruned directory and renamed some files
Nov 11, 2021
3555292
change flux_atmocn_mod to be consistent with changes in mediator
Nov 11, 2021
883e00d
more cleanup of ufs directory
Nov 11, 2021
d16ccaf
fixed compilation problems
Nov 11, 2021
23e1451
implemented different interface for ufs flux_atmocn_mod
Nov 14, 2021
5fdf78b
add compile fixes for ufs
DeniseWorthen Nov 14, 2021
8824b2e
renamed flux_atmocn_mod.F90 to shr_flux_mod since cam calls this for …
Nov 14, 2021
345d808
more cleanup of ufs and cesm differences
Nov 15, 2021
ca111da
removed reference to util and replaced with ufs
Nov 15, 2021
c4d43ba
clean up of Makefile
Nov 15, 2021
45207ec
removed references to use of med_kind_mod and introduced ufs_kind_mod
Nov 15, 2021
afe2b92
added ufs_kind_mod in more places
Nov 15, 2021
7170c76
fixed ufs Makefile
Nov 15, 2021
e703499
changed util to ufs
Nov 15, 2021
4ab9694
removed unneeded files needed by ufs
Nov 16, 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
153 changes: 153 additions & 0 deletions .github/workflows/srt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# CIME scripts regression tests

name: scripts regression tests

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: main
pull_request:
branches: main

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
env:
CC: mpicc
FC: mpifort
CXX: mpicxx
CPPFLAGS: "-I/usr/include -I/usr/local/include"
# Versions of all dependencies can be updated here
PNETCDF_VERSION: pnetcdf-1.12.2
NETCDF_FORTRAN_VERSION: v4.5.2
MCT_VERSION: MCT_2.11.0
PARALLELIO_VERSION: pio2_5_4
NETCDF_C_PATH: /usr
NETCDF_FORTRAN_PATH: ${HOME}/netcdf-fortran
PNETCDF_PATH: ${HOME}/pnetcdf
CIME_MODEL: cesm
CIME_DRIVER: mct

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it

- name: cime checkout
uses: actions/checkout@v2
with:
repository: ESMCI/cime

- name: share checkout
uses: actions/checkout@v2
with:
repository: ESCOMP/CESM_share
path: share

- name: cpl7 checkout
uses: actions/checkout@v2
with:
repository: ESCOMP/CESM_CPL7andDataComps
path: components/cpl7

- id: load-env
run: |
sudo apt-get update
sudo apt-get install libxml2-utils pylint wget gfortran openmpi-bin netcdf-bin libopenmpi-dev cmake libnetcdf-dev

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: mct install
run: |
git clone -b ${{ env.MCT_VERSION }} https://github.com/MCSclimate/MCT libraries/mct
ls -l libraries/mct

- name: parallelio install
run: |
git clone -b ${{ env.PARALLELIO_VERSION }} https://github.com/NCAR/ParallelIO libraries/parallelio
ls -l libraries/parallelio

- name: cache pnetcdf
id: cache-pnetcdf
uses: actions/cache@v2
with:
path: ~/pnetcdf
key: ${{ runner.os }}-${{ env.PNETCDF_VERSION}}-pnetcdf-redo

- name: pnetcdf build
if: steps.cache-pnetcdf.outputs.cache-hit != 'true'
run: |
wget https://parallel-netcdf.github.io/Release/${{ env.PNETCDF_VERSION }}.tar.gz
tar -xzvf ${{ env.PNETCDF_VERSION }}.tar.gz
ls -l
pushd ${{ env.PNETCDF_VERSION }}
./configure --prefix=$HOME/pnetcdf --enable-shared --disable-cxx
make
make install
popd

- name: Cache netcdf-fortran
id: cache-netcdf-fortran
uses: actions/cache@v2
with:
path: ~/netcdf-fortran
key: ${{ runner.os }}-${{ env.NETCDF_FORTRAN_VERSION }}-netcdf-fortran-redo

- name: netcdf fortran build
if: steps.cache-netcdf-fortran.outputs.cache-hit != 'true'
run: |
sudo apt-get install libnetcdf-dev
wget https://github.com/Unidata/netcdf-fortran/archive/${{ env.NETCDF_FORTRAN_VERSION }}.tar.gz
tar -xzvf ${{ env.NETCDF_FORTRAN_VERSION }}.tar.gz
ls -l
pushd netcdf-fortran-*
./configure --prefix=$HOME/netcdf-fortran
make
make install

- name: link netcdf-c to netcdf-fortran path
# link netcdf c library here to simplify build
run: |
pushd ${{ env.NETCDF_FORTRAN_PATH }}/include
ln -fs /usr/include/*netcdf* .
pushd ${{ env.NETCDF_FORTRAN_PATH }}/lib
clibdir=`nc-config --libdir`
ln -fs $clibdir/lib* .

- name: Cache inputdata
id: cache-inputdata
uses: actions/cache@v2
with:
path: $HOME/cesm/inputdata
key: inputdata
#
# The following can be used to ssh to the testnode for debugging
# see https://github.com/mxschmitt/action-tmate for details
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

- name: scripts regression tests
run: |
mkdir -p $HOME/cesm/scratch
mkdir -p $HOME/cesm/inputdata
cd $HOME/work/CESM_share/CESM_share/scripts/tests
ls -l $HOME/work/CESM_share/CESM_share
export NETCDF=$HOME/netcdf-fortran
export PATH=$NETCDF/bin:$PATH
export LD_LIBRARY_PATH=$NETCDF/lib:$HOME/pnetcdf/lib:$LD_LIBRARY_PATH
./scripts_regression_tests.py --no-fortran-run --compiler gnu --mpilib openmpi --machine ubuntu-latest

# 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
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $(info INTERNAL_PIO_INIT is set to $(INTERNAL_PIO_INIT))

MEDIATOR_DIR := $(BASE_DIR)/mediator
LIBRARY_MEDIATOR := $(MEDIATOR_DIR)/libcmeps.a
LIBRARY_UTIL := $(BASE_DIR)/util/libcmeps_util.a
LIBRARY_UTIL := $(BASE_DIR)/ufs/libcmeps_util.a

all default: install

Expand All @@ -55,7 +55,7 @@ else
cp -f $(LIBRARY_UTIL) $(INSTALLDIR)
cp -f $(LIBRARY_MEDIATOR) $(INSTALLDIR)
cp -f mediator/*.mod $(INSTALLDIR)/include
cp -f util/*.mod $(INSTALLDIR)/include
cp -f ufs/*.mod $(INSTALLDIR)/include
cp -f cmeps.mk.install $(INSTALLDIR)/cmeps.mk
endif

Expand All @@ -64,14 +64,14 @@ $(LIBRARY_MEDIATOR): $(LIBRARY_UTIL) .FORCE
exec $(MAKE) PIO_INC=$(PIO_INC) INTERNAL_PIO_INIT=$(INTERNAL_PIO_INIT)

$(LIBRARY_UTIL): .FORCE
cd util ;\
cd ufs ;\
exec $(MAKE) PIO_INC=$(PIO_INC)

.FORCE:

clean:
cd mediator; \
exec $(MAKE) clean
cd util; \
cd ufs; \
exec $(MAKE) clean

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading