Last active
April 22, 2023 10:04
-
-
Save bishtgautam/64b30570ccee8377ca296a57a52be299 to your computer and use it in GitHub Desktop.
Sample ELM_USRDAT script
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
#!/bin/sh | |
RES=ELM_USRDAT | |
COMPSET=IELM | |
MACH=WE37411 | |
COMPILER=gnu | |
SRC_DIR=$PWD/../../ | |
CASE_DIR=${SRC_DIR}/cime/scripts | |
cd ${SRC_DIR}/cime/scripts | |
GIT_HASH=`git log -n 1 --format=%h` | |
CASE_NAME=elm-tdycore.curvilinear_hillslope.${COMPSET}.${MACH}.${GIT_HASH}.`date "+%Y-%m-%d"` | |
./create_newcase -case ${CASE_DIR}/${CASE_NAME} \ | |
-res ${RES} -mach ${MACH} -compiler ${COMPILER} -compset ${COMPSET} | |
cd ${CASE_DIR}/${CASE_NAME} | |
./xmlchange -file env_run.xml -id DATM_CLMNCEP_YR_END -val 1948 | |
./xmlchange -file env_run.xml -id PIO_TYPENAME -val netcdf | |
./xmlchange -file env_run.xml -id RUNDIR -val ${PWD}/run | |
./xmlchange -file env_build.xml -id MPILIB -val mpich | |
#./xmlchange -file env_build.xml -id CESMSCRATCHROOT -val ${PWD} | |
./xmlchange -file env_build.xml -id EXEROOT -val ${PWD}/bld | |
./xmlchange ELM_USRDAT_NAME=curvilinear_hillslope_10x10 | |
./xmlchange LND_DOMAIN_FILE=domain_curvilinear_hillslope_10x10_c191111.nc | |
./xmlchange ATM_DOMAIN_FILE=domain_curvilinear_hillslope_10x10_c191111.nc | |
./xmlchange LND_DOMAIN_PATH=/Users/bish218/projects_1drive/tools/matlab-script-for-clm-sparse-grid/curvilinear_hillslope | |
./xmlchange ATM_DOMAIN_PATH=/Users/bish218/projects_1drive/tools/matlab-script-for-clm-sparse-grid/curvilinear_hillslope | |
cat >> user_nl_elm << EOF | |
fsurdat = '/Users/bish218/projects_1drive/tools/matlab-script-for-clm-sparse-grid/curvilinear_hillslope/surfdata_curvilinear_hillslope_10x10_c191111.nc' | |
EOF | |
./case.setup | |
./case.build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment