LSF Version 7.3 - Using Platform LSF HPC

_my_name=`whoami | sed -e "s/[ ]//g"`
else
_my_name=`id | sed -e 's/[^(]*(\([^)]*\)).*/\1/' | sed -e "s/[ ]//g"`
fi
echo $_my_name
} # who_am_i
#
# -----------------------------------------------------
# Set up the script's log file:
# - create and set the variable LOGDIR to represent the log file directory
# - fill in your own choice of directory LOGDIR
# - the log directory you choose must be accessible by the user from all hosts
# - create a log file with a unique name, based on the job ID
# - if the log directory is not specified, the log file is /dev/null
# - the first entry logs the file creation date and file name
# - we create and set a second variable DISPLAY_JOBID to format the job
# ID properly for writing to the log file
# ----------------------------------------------------
#
#
# Please specify your own LOGDIR,
# Your LOGDIR must be accessible by the user from all hosts.
#
LOGDIR=""
TMP_JOBID=""
if [ -z "$LSB_JOBINDEX" -o "$LSB_JOBINDEX" = "0" ]; then
TMP_JOBID="$LSB_JOBID"
DISPLAY_JOBID="$LSB_JOBID"
else
TMP_JOBID="$LSB_JOBID"_"$LSB_JOBINDEX"
DISPLAY_JOBID="$LSB_JOBID[$LSB_JOBINDEX]"
fi
if [ -z "$LOGDIR" ]; then
LOGFILE="/dev/null"
else
LOGFILE="${LOGDIR}/lammpirun_wrapper.job${TMP_JOBID}.log"
fi
#
# -----------------------------------------------------
# Create and set variables to represent the commands used in the script:
# - to modify this script to use different commands, edit this section
# ----------------------------------------------------
#
TPING_CMD="tping"
LAMMPIRUN_CMD="mpirun"
LAMBOOT_CMD="lamboot"