Bump extern/gotm from ce4a536
to dcb934f
#216
Workflow file for this run
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
name: Build | |
on: push | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Clone | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install conda environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
environment-file: environment.yml | |
activate-environment: eat | |
- name: Force MPI release | |
run: conda install -c conda-forge mpich | |
- name: Compile | |
run: source ./install | |
# - name: Run 2d test case | |
# run: | | |
# source ${CONDA}/etc/profile.d/conda.sh | |
# conda activate eat | |
# cd tests/2d/ | |
# mpiexec -np 1 eat_obs_2d : -np 1 eat_filter_pdaf : -np 9 eat_model_2d | |
# mpiexec -np 1 eat_obs_2d : -np 1 eatpy-filter : -np 9 eat_model_2d | |
- name: Clone gotm-cases | |
run: | | |
git clone -b v6.0 https://github.com/gotm-model/cases.git gotm-cases | |
- name: Run gotm test case | |
run: | | |
cd tests/nns_annual | |
eat-gotm # this will write the restart that the next command operates on | |
eat-gotm-gen restart restart.nc 2 --exclude z --exclude zi --exclude h | |
mpiexec -n 2 eat-gotm --separate_gotm_restart | |
eat-gotm-gen yaml gotm.yaml 2 -p surface/u10/scale_factor 0.2 -p surface/v10/scale_factor 0.2 -p turbulence/turb_param/k_min 0.2 | |
mpiexec -n 1 python run.py : -n 2 eat-gotm --separate_gotm_yaml | |