#!/bin/bash # ----------------------------------------------------------- # UNIX Shell Script File # Tested Operating System(s): RHEL 5,6 # Tested Run Level(s): 3, 5 # Shell Used: BASH shell # Original Author(s): Roberto Padilla-Hernandez # File Creation Date: 02/01/2015 # Date Last Modified: 06/30/2016 # # Version control: 1.14 # # Support Team: # # Contributors: Floyd fayton, Andre van der Westhuysen # # ----------------------------------------------------------- # ------------- Program Description and Details ------------- # ----------------------------------------------------------- # # Job Card to set the resources required for a NWPS run # # ----------------------------------------------------------- #PBS -N %WFO%_prep_r #PBS -j oe #PBS -S /bin/bash #PBS -q dev #PBS -A NWPS-DEV #PBS -l walltime=01:25:00 #PBS -l select=1:ncpus=120:mem=3000MB #PBS -l place=excl #PBS -l debug=true #PBS -V #PBS -o /lfs/h2/emc/ptmp/ali.salimi/com/retro/nwps/v1.4.9/NWPS_%WFO%_prep.o #PBS -e /lfs/h2/emc/ptmp/ali.salimi/com/retro/nwps/v1.4.9/NWPS_%WFO%_prep.o cd $PBS_O_WORKDIR # Setup and load modules export HOMEnwps=${NWPSdir} VERSION_FILE=${HOMEnwps}/versions/run.ver if [ -f $VERSION_FILE ]; then . $VERSION_FILE else ECFNAME="jnwps_prep.ecf" echo "***JOB ${ECFNAME} ERROR: Version File $VERSION_FILE does not exist ***" exit fi module purge module load envvar/${envvar_ver} module load prod_envir/${prod_envir_ver} module load prod_util/${prod_util_ver} module load PrgEnv-intel/${PrgEnv_intel_ver} module load craype/${craype_ver} module load intel/${inter_ver} module load cray-pals/${cray_pals_ver} module load wgrib2/${wgrib2_ver} module list export FORT_BUFFERED=true export NWPSplatform="DEVWCOSS" export MP_PGMMODEL=mpmd export MP_CSS_INTERRUPT=yes export WFO="%WFO%" export siteid=${WFO} export SITEID=${WFO^^} export KEEPDATA="YES" export model="nwps" export MODEL=${model^^} export envir="para" export DEVWCOSS_USER=$(whoami) export COMROOT=/lfs/h2/emc/ptmp/${DEVWCOSS_USER}/com/retro #Dev environment value for $job and $jobid export job=pnwps_${WFO}_prep_ret export jobid=pnwps_${WFO}_prep_ret.$$ #Dev environment jlogfile export ver=${nwps_ver} mkdir -p /lfs/h2/emc/ptmp/${DEVWCOSS_USER}/$NET/$ver/retro/logs/jlogfiles export jlogfile=/lfs/h2/emc/ptmp/${DEVWCOSS_USER}/$NET/$ver/retro/logs/jlogfiles/jlogfile.${job} #Set platform export WCOSS_SYSTEM=$( echo $COMROOTp1 | cut -c7 )d1 export WCOSS_SYSTEM_COM=$( echo $COMROOTp1 | cut -c7-9 ) ${HOMEnwps}/dev/jobs/J${MODEL}_PREP_RET #%include #%manual ################################################################################ #TASKSCRIPT DOCUMENTATION BLOCK #TASKSCRIPT: jnwps_%WFO%_prep #LAST MODIFIER: Roberto Padilla #ORGANIZATION: NP11 #DATE: SEP 2014 #FULL NAME: /nwps_para/nwps/SR/j%WFO% #PURPOSE: To execute the job that creates NWPS %WFO% GRIB output files #JOB SCRIPT CALLED: ${NWROOT}/jobs/JNWPS ==> # ${NWROOT}/scripts/exnwps_prep.sh.ecf ################################################################################# ###################################################################### # Job specific troubleshooting instructions: # see generic troubleshoot manual page # ###################################################################### #%end