#!/bin/ksh COMMAND=$1 ############################################################ # load modulefile and set up the environment for job running ############################################################ if [ "$machine" = "DELL" ] ; then . /usrx/local/prod/lmod/lmod/init/sh MODULEFILES=${MODULEFILES:-/gpfs/dell2/emc/modeling/noscrub/${USER}/regional_workflow/modulefiles} module use ${MODULEFILES}/wcoss_dell_p3 module load fv3 module load prod_util/1.1.0 module load grib_util/1.0.6 module load CFP/2.0.1 module load HPSS/5.0.2.5 elif [ "$machine" = "WCOSS_C" ] ; then if [ $envir != 'prod' ] then GESROOT_save=$GESROOT fi cd /u/$USER # cron does this for us - this is here just to be safe . /etc/profile if [ -a .profile ]; then . ./.profile fi if [ -a .bashrc ]; then . ./.bashrc fi module load prod_util module load prod_envir module load cfp-intel-sandybridge/2.0.1 if [ $envir != 'prod' ] then GESROOT=${GESROOT_save} fi echo now at end of launch.ksh have GESROOT as $GESROOT else echo "launch.ksh: modulefile is not set up yet for this machine-->${machine}." echo "Job abort!" exit 1 fi # print out loaded modules module list ############################################################ # # # define the name of running directory with job name. # # (NCO: only data.${jobid}) # # # ############################################################ #if [ -n ${rundir_task} ] ; then # export DATA=${rundir_task}.${jid} #fi $COMMAND