⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 run-sgi.csh

📁 CCSM Research Tools: Community Atmosphere Model (CAM)
💻 CSH
字号:
#! /usr/bin/csh -f#-----------------------------------------------------------------------## SGI##------------#### This is an example script to build and run the default CAM configuration on## an SGI.  The default configuration is T42L26, Eulerian dynamics, CLM2 land## model, and CSIM4 ice model.#### Set NQS options ## -q  is the queue in which to run the job## -l  on NCAR's SGI this number should be 4 greater than the number of CPUs ##       specified on the -q line## -lT is the time limit in seconds## -eo says to include both stdout and stderr in the output file#QSUB -q ded_32#QSUB -l mpp_p=36#QSUB -lT 20000#QSUB -eo## Number of OMP threads.  Only need to set if requesting## fewer than the maximum number for the queue.#setenv OMP_NUM_THREADS 32## Set runtime variables for optimal execution on a DSMsetenv OMP_DYNAMIC FALSEsetenv _DSM_PLACEMENT ROUND_ROBINsetenv _DSM_WAIT SPINsetenv MPC_GANG    OFF## MP_SLAVE_STACKSIZE sets the size of the thread stacksetenv MP_SLAVE_STACKSIZE 40000000## Do our best to get sufficient stack memorylimit stacksize unlimited## SGI-specific stuff. MIPSpro is required for f90source /opt/modules/modules/init/cshmodule purgemodule load MIPSpro modules nqe mpt## ROOT OF CAM DISTRIBUTION - probably needs to be customized.## Contains the source code for the CAM distribution.## (the root directory contains the subdirectory "models")set camroot      = /fs/cgd/data0/$LOGNAME/cam2_0## ROOT OF CAM DATA DISTRIBUTION - needs to be customized unless running at NCAR.## Contains the initial and boundary data for the CAM distribution.## (the root directory contains the subdirectories "atm" and "lnd")setenv CSM_ROOT    /fs/cgd/csm/inputdata## Default namelist settings:## $case is the case identifier for this run. It will be placed in the namelist.## $runtype is the run type: initial, restart, or branch.## $nelapse is the number of timesteps to integrate, or number of days if negative.set case         = camrunset runtype      = initialset nelapse      = -1## $wrkdir is a working directory where the model will be built and run.## $blddir is the directory where model will be compiled.## $rundir is the directory where the model will be run.## $cfgdir is the directory containing the CAM configuration scripts.set wrkdir       = /ptmp/$LOGNAMEset blddir       = $wrkdir/$case/bldset rundir       = $wrkdir/$caseset cfgdir       = $camroot/models/atm/cam/bld## Ensure that run and build directories existmkdir -p $rundir                || echo "cannot create $rundir" && exit 1mkdir -p $blddir                || echo "cannot create $blddir" && exit 1## If an executable doesn't exist, build one.if ( ! -x $blddir/cam ) then    cd $blddir                  || echo "cd $blddir failed" && exit 1    echo "building CAM in $blddir ..."    $cfgdir/configure -s        || echo "configure failed" && exit 1    gmake -j4 >&! MAKE.out      || echo "CAM build failed: see $blddir/out.gmake" && exit 1endif## Create the namelistcd $blddir                      || echo "cd $blddir failed" && exit 1$cfgdir/build-namelist -s -case $case -runtype $runtype -o $rundir/namelist \ -namelist "&camexp nelapse=$nelapse /"  || echo "build-namelist failed" && exit 1## Run CAMcd $rundir                      || echo "cd $rundir failed" && exit 1echo "running CAM in $rundir"$blddir/cam < namelist          || echo "CAM run failed" && exit 1exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -