forked from ESCOMP/CMEPS
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes incorrect mapping of ifrac for nems_orig and nems_frac * adds ability for diagnostic budgets used in cesm * adds field packing to increase performance
- Loading branch information
1 parent
4d50adf
commit cc28642
Showing
35 changed files
with
6,442 additions
and
4,896 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# This is a workflow to compile the cdeps source without cime | ||
name: extbuild | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build-cmeps: | ||
runs-on: ubuntu-latest | ||
env: | ||
CC: mpicc | ||
FC: mpifort | ||
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_31 | ||
PNETCDF_VERSION: pnetcdf-1.12.1 | ||
NETCDF_FORTRAN_VERSION: v4.5.2 | ||
# PIO version is awkward | ||
PIO_VERSION_DIR: pio2_5_2 | ||
PIO_VERSION: pio-2.5.2 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# Build the ESMF library, if the cache contains a previous build | ||
# it will be used instead | ||
- id: cache-esmf | ||
uses: actions/cache@v2 | ||
with: | ||
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 libnetcdf-dev | ||
- id: build-ESMF | ||
if: steps.cache-esmf.outputs.cache-hit != 'true' | ||
run: | | ||
wget https://github.com/esmf-org/esmf/archive/${{ env.ESMF_VERSION }}.tar.gz | ||
tar -xzvf ${{ env.ESMF_VERSION }}.tar.gz | ||
pushd esmf-${{ env.ESMF_VERSION }} | ||
export ESMF_DIR=`pwd` | ||
export ESMF_COMM=openmpi | ||
export ESMF_YAMLCPP="internal" | ||
export ESMF_INSTALL_PREFIX=$HOME/ESMF | ||
export ESMF_BOPT=g | ||
make | ||
make install | ||
popd | ||
- id: cache-pnetcdf | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/pnetcdf | ||
key: ${{ runner.os }}-${{ env.PNETCDF_VERSION}}-pnetcdf | ||
- 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 | ||
- name: netcdf fortran build | ||
if: steps.cache-netcdf-fortran.outputs.cache-hit != 'true' | ||
run: | | ||
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: Build PIO | ||
if: steps.cache-PIO.outputs.cache-hit != 'true' | ||
run: | | ||
git submodule init | ||
git submodule update | ||
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 -DPIO_ENABLE_TESTS=OFF -DNetCDF_Fortran_PATH=$HOME/netcdf-fortran -DPnetCDF_PATH=$HOME/pnetcdf ../nems/lib/ParallelIO | ||
make VERBOSE=1 | ||
make install | ||
popd | ||
- name: Build CMEPS | ||
run: | | ||
export ESMFMKFILE=$HOME/ESMF/lib/libg/Linux.gfortran.64.openmpi.default/esmf.mk | ||
export PIO=$HOME/pio | ||
mkdir build-cmeps | ||
pushd build-cmeps | ||
cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_Fortran_FLAGS="-g -Wall -ffree-form -ffree-line-length-none" ../ | ||
make VERBOSE=1 | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ install: | |
python: | ||
- '2.7' | ||
- '3.6' | ||
- '3.8' | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
script: ./tcipylint | ||
script: ./tcipylint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.