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

📄 run-ibm.csh

📁 CCSM Research Tools: Community Atmosphere Model (CAM)
💻 CSH
字号:
#! /usr/bin/csh -f#-----------------------------------------------------------------------## IBM##------------#### This is an example script to build and run the default CAM configuration## on an IBM SP.  The default configuration is T42L26, Eulerian dynamics,## CLM2 land model, and CSIM4 ice model.#### Setting LoadLeveler options for batch queue submission.## @ class is the queue in which to run the job.##     To see a list of available queues, type "llclass" interactively.## @ node is the number of nodes. @tasks_per_node should be set to 1 because##     of the hybrid OpenMP/MPI configuration of CAM.  The number of nodes should##     be a power of 2, up to a max of 16 for T42.## @ output and @error are the names of file written to the directory from##     which the script is submitted containing STDOUT and STDERR respectively## @ job_type = parallel declares that multiple nodes will be used.## @ network.MPI: Has to do with network connection between nodes.  Best to leave alone.## @ node_usage = not_shared acquires dedicated access to nodes for the job.## @ queue tells load leveler to submit the job#@ class          = com_reg#@ node           = 2#@ tasks_per_node = 1#@ output         = out.$(jobid)#@ error          = out.$(jobid)#@ job_type       = parallel#@ network.MPI    = csss,not_shared,us#@ node_usage     = not_shared#@ queue## POE Environment.  Set these for interactive jobs.  They're ignored by LoadLeveler## MP_NODES is the number of nodes.  The number chosen should be a power of 2, up to a max of 16 for T42.setenv MP_NODES 2setenv MP_TASKS_PER_NODE 1setenv MP_EUILIB ussetenv MP_RMPOOL 1## XLSMPOPTS sets the size of the thread stacksetenv XLSMPOPTS "stack=86000000"## Do our best to get sufficient stack memorylimit stacksize unlimited## 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    $cfgdir/configure -s        || echo "configure failed" && exit 1    echo "building CAM in $blddir ..."    gmake -j4 >&! MAKE.out      || echo "CAM build failed: see $blddir/MAKE.out" && 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"poe $blddir/cam < namelist      || echo "CAM run failed" && exit 1exit 0

⌨️ 快捷键说明

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