-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
316 additions
and
4 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,35 @@ | ||
name: mmf-simplified-macos | ||
|
||
on: [push, pull-request] | ||
|
||
jobs: | ||
mmf-simplified-macos: | ||
runs-on: macos-12 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: | ||
- clang | ||
dycore: | ||
- pamc | ||
- pama | ||
defaults: | ||
run: | ||
working-directory: standalone/mmf_simplified/build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install mpi and netcdf | ||
run: brew install open-mpi netcdf | ||
|
||
- name: Configure and build | ||
run: | | ||
source ../../machines/ci/macos-${{matrix.compiler}}.env && | ||
YAKL_CXX_FLAGS="${YAKL_CXX_FLAGS} -DYAKL_DEBUG" | ||
./cmakescript_${{matrix.dycore}}.sh && | ||
cmake --build . | ||
- name: Run driver | ||
run: ./driver ../inputs/ci/input_${{matrix.dycore}}.yaml |
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,36 @@ | ||
name: mmf-simplified-ubuntu | ||
|
||
on: [push, pull-request] | ||
|
||
jobs: | ||
mmf-simplified-ubuntu: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: | ||
- gcc | ||
- clang | ||
dycore: | ||
- pamc | ||
- pama | ||
defaults: | ||
run: | ||
working-directory: standalone/mmf_simplified/build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install mpi and netcdf | ||
run: sudo apt-get install -y libopenmpi-dev libnetcdf-dev | ||
|
||
- name: Configure and build | ||
run: | | ||
source ../../machines/ci/ubuntu-${{matrix.compiler}}.env && | ||
YAKL_CXX_FLAGS="${YAKL_CXX_FLAGS} -DYAKL_DEBUG" | ||
./cmakescript_${{matrix.dycore}}.sh && | ||
cmake --build . | ||
- name: Run driver | ||
run: ./driver ../inputs/ci/input_${{matrix.dycore}}.yaml |
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,48 @@ | ||
name: pamc-idealized-ubuntu | ||
|
||
on: [push, pull-request] | ||
|
||
jobs: | ||
pamc-idealized-ubuntu: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- model: layermodel | ||
hamiltonian: swe | ||
thermo: none | ||
- model: layermodel | ||
hamiltonian: tswe | ||
thermo: none | ||
- model: extrudedmodel | ||
hamiltonian: ce | ||
thermo: idealgaspottemp | ||
- model: extrudedmodel | ||
hamiltonian: ce | ||
thermo: idealgasentropy | ||
- model: extrudedmodel | ||
hamiltonian: an | ||
thermo: idealgaspottemp | ||
- model: extrudedmodel | ||
hamiltonian: mce_rho | ||
thermo: constkappavirpottemp | ||
- model: extrudedmodel | ||
hamiltonian: man | ||
thermo: constkappavirpottemp | ||
defaults: | ||
run: | ||
working-directory: standalone/idealized/build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install mpi and netcdf | ||
run: sudo apt-get install -y libopenmpi-dev libnetcdf-dev | ||
|
||
- name: Configure and build | ||
run: | | ||
source ../../machines/ci/ubuntu-gcc.env && | ||
./cmakescript_pamc.sh ${{matrix.model}} ${{matrix.hamiltonian}} ${{matrix.thermo}} && | ||
cmake --build . |
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,31 @@ | ||
name: pamc-unit-macos | ||
|
||
on: [push, pull-request] | ||
|
||
jobs: | ||
pamc-unit-macos: | ||
runs-on: macos-12 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: | ||
- clang | ||
defaults: | ||
run: | ||
working-directory: dynamics/spam/test/build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install mpi and netcdf | ||
run: brew install open-mpi netcdf | ||
|
||
- name: Configure and build | ||
run: | | ||
source ../../../../standalone/machines/ci/macos-${{matrix.compiler}}.env && | ||
./cmakescript.sh && | ||
cmake --build . | ||
- name: Run tests | ||
run: ctest --output-on-failure |
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,32 @@ | ||
name: pamc-unit-ubuntu | ||
|
||
on: [push, pull-request] | ||
|
||
jobs: | ||
pamc-unit-ubuntu: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: | ||
- gcc | ||
- clang | ||
defaults: | ||
run: | ||
working-directory: dynamics/spam/test/build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install mpi and netcdf | ||
run: sudo apt-get install -y libopenmpi-dev libnetcdf-dev | ||
|
||
- name: Configure and build | ||
run: | | ||
source ../../../../standalone/machines/ci/ubuntu-${{matrix.compiler}}.env && | ||
./cmakescript.sh && | ||
cmake --build . | ||
- name: Run tests | ||
run: ctest --output-on-failure |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
export YAKL_ARCH= | ||
unset CXXFLAGS | ||
unset FFLAGS | ||
unset F77FLAGS | ||
unset F90FLAGS | ||
|
||
export CC=mpicc | ||
export CXX=mpic++ | ||
export FC=mpifort | ||
|
||
export OMPI_CC=clang | ||
export OMPI_CXX=clang++ | ||
export OMPI_FC=gfortran-12 | ||
|
||
export YAKL_CXX_FLAGS="-DHAVE_MPI -O2 -I`nc-config --includedir`" | ||
export YAKL_F90_FLAGS="-O2 -ffree-line-length-none" | ||
export PAM_LINK_FLAGS="-L`nc-config --libdir` -lnetcdf" | ||
export PAM_NLEV=50 | ||
export PAM_SCREAM_USE_CXX="OFF" |
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,21 @@ | ||
#!/bin/bash | ||
|
||
export YAKL_ARCH= | ||
unset CXXFLAGS | ||
unset FFLAGS | ||
unset F77FLAGS | ||
unset F90FLAGS | ||
|
||
export CC=mpicc | ||
export CXX=mpic++ | ||
export FC=mpifort | ||
|
||
export OMPI_CC=clang | ||
export OMPI_CXX=clang++ | ||
export OMPI_FC=gfortran | ||
|
||
export YAKL_CXX_FLAGS="-DHAVE_MPI -O2 -I`nc-config --includedir`" | ||
export YAKL_F90_FLAGS="-O2 -ffree-line-length-none" | ||
export PAM_LINK_FLAGS="-L`nc-config --libdir` -lnetcdf" | ||
export PAM_NLEV=50 | ||
export PAM_SCREAM_USE_CXX="OFF" |
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,21 @@ | ||
#!/bin/bash | ||
|
||
export YAKL_ARCH= | ||
unset CXXFLAGS | ||
unset FFLAGS | ||
unset F77FLAGS | ||
unset F90FLAGS | ||
|
||
export CC=mpicc | ||
export CXX=mpic++ | ||
export FC=mpifort | ||
|
||
export OMPI_CC=gcc | ||
export OMPI_CXX=g++ | ||
export OMPI_FC=gfortran | ||
|
||
export YAKL_CXX_FLAGS="-DHAVE_MPI -O2 -I`nc-config --includedir`" | ||
export YAKL_F90_FLAGS="-O2 -ffree-line-length-none" | ||
export PAM_LINK_FLAGS="-L`nc-config --libdir` -lnetcdf" | ||
export PAM_NLEV=50 | ||
export PAM_SCREAM_USE_CXX="OFF" |
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,36 @@ | ||
--- | ||
simTime : 1800 # 2 GCM time steps | ||
|
||
# Number of cells to use in the CRMs | ||
crm_nx : 65 | ||
crm_ny : 1 | ||
|
||
# Number of CRMs | ||
nens : 1 | ||
|
||
# Vertical height cooridnates file | ||
vcoords : vcoords_equal_50_20km.nc | ||
|
||
# Domain size of the CRMs | ||
xlen : 128000 | ||
ylen : 64000 | ||
|
||
weno_scalars : true | ||
|
||
weno_winds : true | ||
|
||
initData : supercell | ||
|
||
# Output filename | ||
out_prefix : test_pama | ||
|
||
# GCM time step | ||
dt_gcm: 900 | ||
|
||
# CRM physics time step | ||
dt_crm_phys: 20. | ||
|
||
# Output frequency in seconds | ||
out_freq: 200. | ||
|
||
|
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,28 @@ | ||
--- | ||
simTime : 1800 # 2 GCM time steps | ||
|
||
# Number of cells to use in the CRMs | ||
crm_nx : 65 | ||
crm_ny : 1 | ||
|
||
# Number of CRMs | ||
nens : 1 | ||
|
||
# Vertical height cooridnates file | ||
vcoords : vcoords_equal_50_20km.nc | ||
|
||
# Domain size of the CRMs | ||
xlen : 128000 | ||
ylen : 64000 | ||
|
||
# Output filename | ||
out_prefix : test_pamc | ||
|
||
# GCM time step | ||
dt_gcm: 900 | ||
|
||
# CRM physics time step | ||
dt_crm_phys: 20. | ||
|
||
# Output frequency in seconds | ||
out_freq: 200. |