Setting up Environment for AGCM Sandbox: Difference between revisions

Bmauer (talk | contribs)
Created page with "Given the large number of directories in the GEOS5 model it can be useful to set up your environment to make navigating your sandbox easier. This page will document one way of do..."
 
Bmauer (talk | contribs)
adding script to set up environment for model
Line 3: Line 3:
  <nowiki>  
  <nowiki>  
#!/bin/csh -f
#!/bin/csh -f
if ($?ESMADIR) then
  echo "ESMADIR is already set"
  exit
endif
if ($1 == MODEL1_NAME) then
  setenv ESMADIR PATH_TO_MODEL_SANDBOX1/GEOSagcm
else if ($1 == MODEL2_NAME) then
  setenv ESMADIR PATH_TO_MODEL_SANDBOX2/GEOSagcm
else
  echo "invalid tag for model"
  exit
endif


set arch = `uname`
set arch = `uname`
Line 92: Line 106:
echo ""
echo ""
</nowiki>
</nowiki>
This script sets aliases to the module directories in a GEOS5 sandbox. This script is of course assuming you have already set the ESMADIR environment variable.