# #!/bin/ksh # set -x # echo "Start to run fim_fcst_run_G4L38_24hr.IN" # # This script is NOT complete for running multiple ensemble members # export ENS_NUM=1 export ENS_SPS=.false. # # location of FIM test data #TODO: DRY this with RT.sh #FIMDATADIR=/gpfs/t2c/global/noscrub/wx20tbh/fimdata #FIMDATADIR=_STMP_/${USER}/REGRESSION_TEST/FIMdata #FIMDATADIR=/meso/noscrub/wx20rv/REGRESSION_TEST/FIMdata FIMDATADIR=_RTPWD_/FIMdata c=1 while [ $c -le $ENS_NUM ] ; do eval export PE$c=\${PE$c:-0} c=$((c+1)) done export MP_STDOUTMODE=ordered export MP_LABELIO=yes export MP_SHARED_MEMORY=yes export MEMORY_AFFINITY=MCM ##export BIND_TASKS=yes export NTHREADS=1 export XLSMPOPTS="parthds=$NTHREADS:spins=0:yields=0:stack=512000000" export SPINLOOPTIME=500 export YIELDLOOPTIME=500 export AIXTHREAD_SCOPE=S export MALLOCMULTIHEAP=true # # Set up experiment and directory names # export NSCDIR=/global/noscrub export TOPDIR=/global/save export DUMPDIR=/global/shared/dump # export MP_COREFILE_FORMAT=lite export fcst_begin=${fcst_begin:-YES} # export NCP=${NCP:-/u/wx20mi/bin/ncp} # # # # nhourb is the beginig hour. If nhourb=0, then initial condition # needs to be specified. ndays is the Length of #orecast in days # begining from nhourb # # export MEMBER_NAMES="p01" # export MEMBER_NAMES="p01 p02 p03 p04 p05 p06 p07 p08 p09 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 c00" export nsout=${nsout:-0} export lsm=${lsm:-1} export FCSTSCRIPT=_SRCDIR_/tests/fim_fcst.sh.sms_nems echo 'FCSTSCRIPT=' $FCSTSCRIPT export FCSTEXEC=_SRCDIR_/exe/NEMS.x echo 'FCSTEXEC=' $FCSTEXEC export FIM_USE_NEMS=_FIM_USE_NEMS_ echo 'FIM_USE_NEMS=' $FIM_USE_NEMS # # # *************************************************************** # Below here no change needed most of the time # ____________________________________________ # # TBH: copy FIM files into run directory with renames when needed cp _SRCDIR_/src/atmos/fim/FIMrun/* _RUNDIR_ cp _SRCDIR_/src/atmos/fim/FIMsrc_devccs/bin/* _RUNDIR_ cp _SRCDIR_/src/atmos/fim/FIMsrc_devccs/fim_setup.ksh _RUNDIR_ # set SRCDIR in FIMnamelist # set DATADIR, DATADR2, chem_datadir, and path to topodatfile in FIMnamelist cat _RUNDIR_/FIMnamelist.nemsdevccs \ | sed s:_SORCDIR_:_SRCDIR_:g \ | sed s:_DATDIR_:${FIMDATADIR}:g > _RUNDIR_/FIMnamelist cd _RUNDIR_ export COMOUT=_RUNDIR_ # $FCSTSCRIPT > fim_fcst.sh.sms_nems.out 2>&1 || exit #