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

Add CI test for IM-1-2-3 cases. #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
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
54 changes: 54 additions & 0 deletions .github/workflows/ci-compile-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI
on:
push:
branches:
- '**'
jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: rfiorella/e3sm-dev:latest
steps:
- name: Check out the NGEE-Arctic-E3SM repo
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
submodules: true
- name: Setup cime and input datafiles
run: |
mkdir ~/.cime
cp /home/e3smuser/.cime/* /github/home/.cime/
git clone https://github.com/rfiorella/pt-e3sm-inputdata /home/e3smuser/inputdata
cd /home/e3smuser/inputdata/lnd/clm2/firedata
tar -zxvf clmforc.Li_2012_hdm_0.5x0.5_AVHRR_simyr1850-2010_c130401.nc.tar.gz
cd /home/e3smuser/inputdata/atm/datm7/NASA_LIS/
tar -zxvf clmforc.Li_2012_climo1995-2011.T62.lnfm_c130327.nc.tar.gz
tar -zxvf clmforc.Li_2012_climo1995-2011.T62.lnfm_Total_c140423.nc.tar.gz
ls -v /home/e3smuser/inputdata/atm/datm7/NASA_LIS/
- name: create new case and setup
run: |
cd cime/scripts && ./create_newcase --mach docker --res ELM_USRDAT --compset ICB1850CNPRDCTCBC --case ~/output/ci_test \
&& cd ~/output/ci_test
./xmlchange MOSART_MODE=NULL,DOUT_S=FALSE,DIN_LOC_ROOT=/home/e3smuser/inputdata
./xmlchange DIN_LOC_ROOT_CLMFORC=/home/e3smuser/inputdata/atm/datm7
./xmlchange ELM_USRDAT_NAME=1x1pt_AK-TLG
./xmlchange ATM_DOMAIN_PATH=/home/e3smuser/inputdata/share/domains/domain.clm
./xmlchange LND_DOMAIN_PATH=/home/e3smuser/inputdata/share/domains/domain.clm
./xmlchange ATM_DOMAIN_FILE=domain.lnd.1x1pt_teller-GRID_navy.nc
./xmlchange LND_DOMAIN_FILE=domain.lnd.1x1pt_teller-GRID_navy.nc
./xmlchange PIO_TYPENAME=netcdf,NTASKS=1,NTHRDS=1
./xmlchange STOP_OPTION=nyears,STOP_N=5
./xmlchange BATCH_SYSTEM=none
echo "&clm_inparm" >> user_nl_elm
echo " do_budgets = .false." >> user_nl_elm
echo " use_nofire = .true." >> user_nl_elm
echo " metdata_type = 'gswp3'" >> user_nl_elm
echo " metdata_bypass = '/home/e3smuser/inputdata/atm/datm7/atm_forcing.datm7.GSWP3.0.5d.v2.c180716_NGEE-Grid/cpl_bypass_teller-Grid'" >> user_nl_elm
echo " fsurdat = '/home/e3smuser/inputdata/lnd/clm2/surfdata_map/surfdata_1x1pt_teller-GRID_simyr1850_c360x720_c171002.nc'" >> user_nl_elm
echo " stream_fldfilename_popdens = '/home/e3smuser/inputdata/lnd/clm2/firedata/clmforc.Li_2012_hdm_0.5x0.5_AVHRR_simyr1850-2010_c130401.nc'" >> user_nl_elm
./case.setup
# add coupler bypass flag to cmake macros.
echo 'string(APPEND CPPDEFS " -DCPL_BYPASS")' >> cmake_macros/universal.cmake
./case.build
./case.submit --no-batch