Skip to content

Instantly share code, notes, and snippets.

@PeterCaldwell
Created May 5, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterCaldwell/ed4e2caa11501ccc6b994a9e5a8c0812 to your computer and use it in GitHub Desktop.
Save PeterCaldwell/ed4e2caa11501ccc6b994a9e5a8c0812 to your computer and use it in GitHub Desktop.
Run script demonstrating that ending EXEROOT with a slash causes MCT build to fail.
#!/bin/csh
#Minimal code reproducing mct build failure on Anvil.
#Note that problem seems to be ending slash in specification of EXEROOT
set case_name=master.mintest1.ne4np4_oQU240
cd ~/ACME_code/master/cime/scripts/
./create_newcase --case /lcrc/group/acme/${USER}/ACME_simulations/${case_name}/case_scripts --compset A_WCYCL1850 --res n\
e4np4_oQU240 --pecount M --handle-preexisting-dirs u --output-root /lcrc/group/acme/${USER}/ACME_simulations/
cd /lcrc/group/acme/${USER}/ACME_simulations/${case_name}/case_scripts
#Adding a '/' on the end of build in the line below causes the build to fail.
#try deleting the ending slash and re-running to see that this really is the problem.
./xmlchange EXEROOT=/lcrc/group/acme/${USER}/ACME_simulations/${case_name}/build/
./xmlchange RUNDIR=/lcrc/group/acme/${USER}/ACME_simulations/${case_name}/run
./case.setup --reset
./case.build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment