lupeng2006@hotmail_com
New Member
Dear all
I want to run the CAM5 in IBM aix
but when configure using run-ibm.csh* there are some thing wrong.
I attached the run-ibm.csh* in CAM3 which can run CAM3 in our computers
Who can help me change it to fit CAM5, thank you very much
#! /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 = normald
###@ node = 4
###@ tasks_per_node = 4
###@ output = out.$(jobid)
###@ error = err.$(jobid)
###@ job_type = parallel
###@ network.MPI = sn_all,shared,us
###@ node_usage = shared
###@ job_name = cam3_wm
###@ 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 2
#setenv MP_TASKS_PER_NODE 1
#setenv MP_EUILIB us
#setenv MP_RMPOOL 1
# TH: bug fix suggested by Brian Eaton 1/24/03
#unsetenv MP_PROCS
# must be set equal to (CPUs-per-node / tasks_per_node)
#setenv OMP_NUM_THREADS 4
## suggestion from Jim Edwards to reintroduce XLSMPOPTS on 11/13/03
#setenv XLSMPOPTS "stack=256000000"
#setenv AIXTHREAD_SCOPE S
#setenv MALLOCMULTIHEAP true
#setenv OMP_DYNAMIC false
## Do our best to get sufficient stack memory
#limit stacksize unlimited
## netCDF stuff for Q32
#setenv INC_NETCDF /opt/netcdf-3.5.1/include
#setenv LIB_NETCDF /opt/netcdf-3.5.1/lib
## netCDF stuff for Q64
setenv INC_NETCDF /u/student/soft/netcdf-3.5.1_64/include
setenv LIB_NETCDF /u/student/soft/netcdf-3.5.1_64/lib
## 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 = /ngpfs/fs3/student/cam3
## 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 CSMDATA /ngpfs/fs3/student/cam3/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 = test32
set runtype = initial
set nelapse = 150
## $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 = /ngpfs/fs3/student
set blddir = $wrkdir/$case/bld
set rundir = $wrkdir/$case
set cfgdir = $camroot/models/atm/cam/bld
## Ensure that run and build directories exist
mkdir -p $rundir || echo "cannot create $rundir" && exit 1
mkdir -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 || echo "configure failed" && exit 1
echo "building CAM in $blddir ..."
rm -f Depends
gmake -j4 >&! MAKE.out || echo "CAM build failed: see $blddir/MAKE.out" && exit 1
endif
## Create the namelist
cd $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
$cfgdir/build-namelist -s -case $case -runtype $runtype
-namelist "&camexp nelapse=$nelapse /"
-namelist "&camexp archive_dir='$rundir' /"
-namelist "&camexp rest_pfile ='$rundir/cam2.rpointer' /"
-o $rundir/namelist
-infile $cfgdir/namelist_sst5120
|| echo "build-namelist failed" && exit 1
## Run BCCAM
cd $rundir || echo "cd $rundir failed" && exit 1
cp $camroot/models/atm/cam/bld/cam3.cmd .
# cp $CSMDATA/atm/cam2/inic/smmr_T42_asc.dat .
###
echo "running CAM3 in $rundir"
# poe $blddir/cam < namelist || echo "CAM run failed" && exit 1
# llsubmit cam3.cmd
exit 0
I want to run the CAM5 in IBM aix
but when configure using run-ibm.csh* there are some thing wrong.
I attached the run-ibm.csh* in CAM3 which can run CAM3 in our computers
Who can help me change it to fit CAM5, thank you very much
#! /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 = normald
###@ node = 4
###@ tasks_per_node = 4
###@ output = out.$(jobid)
###@ error = err.$(jobid)
###@ job_type = parallel
###@ network.MPI = sn_all,shared,us
###@ node_usage = shared
###@ job_name = cam3_wm
###@ 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 2
#setenv MP_TASKS_PER_NODE 1
#setenv MP_EUILIB us
#setenv MP_RMPOOL 1
# TH: bug fix suggested by Brian Eaton 1/24/03
#unsetenv MP_PROCS
# must be set equal to (CPUs-per-node / tasks_per_node)
#setenv OMP_NUM_THREADS 4
## suggestion from Jim Edwards to reintroduce XLSMPOPTS on 11/13/03
#setenv XLSMPOPTS "stack=256000000"
#setenv AIXTHREAD_SCOPE S
#setenv MALLOCMULTIHEAP true
#setenv OMP_DYNAMIC false
## Do our best to get sufficient stack memory
#limit stacksize unlimited
## netCDF stuff for Q32
#setenv INC_NETCDF /opt/netcdf-3.5.1/include
#setenv LIB_NETCDF /opt/netcdf-3.5.1/lib
## netCDF stuff for Q64
setenv INC_NETCDF /u/student/soft/netcdf-3.5.1_64/include
setenv LIB_NETCDF /u/student/soft/netcdf-3.5.1_64/lib
## 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 = /ngpfs/fs3/student/cam3
## 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 CSMDATA /ngpfs/fs3/student/cam3/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 = test32
set runtype = initial
set nelapse = 150
## $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 = /ngpfs/fs3/student
set blddir = $wrkdir/$case/bld
set rundir = $wrkdir/$case
set cfgdir = $camroot/models/atm/cam/bld
## Ensure that run and build directories exist
mkdir -p $rundir || echo "cannot create $rundir" && exit 1
mkdir -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 || echo "configure failed" && exit 1
echo "building CAM in $blddir ..."
rm -f Depends
gmake -j4 >&! MAKE.out || echo "CAM build failed: see $blddir/MAKE.out" && exit 1
endif
## Create the namelist
cd $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
$cfgdir/build-namelist -s -case $case -runtype $runtype
-namelist "&camexp nelapse=$nelapse /"
-namelist "&camexp archive_dir='$rundir' /"
-namelist "&camexp rest_pfile ='$rundir/cam2.rpointer' /"
-o $rundir/namelist
-infile $cfgdir/namelist_sst5120
|| echo "build-namelist failed" && exit 1
## Run BCCAM
cd $rundir || echo "cd $rundir failed" && exit 1
cp $camroot/models/atm/cam/bld/cam3.cmd .
# cp $CSMDATA/atm/cam2/inic/smmr_T42_asc.dat .
###
echo "running CAM3 in $rundir"
# poe $blddir/cam < namelist || echo "CAM run failed" && exit 1
# llsubmit cam3.cmd
exit 0