LSF Version 7.3 - Using Platform LSF HPC

If you do not set your environment variables in the job script, then you must add some
lines to the script to restore environment variables. For example:
if [ -f $LSB_CHKPNT_DIR/.envdump ]; then
.$LSB_CHKPNT_DIR/.envdump
fi
Ensure that your jobs run in the checkpoint directory set by LSF, by adding the
following line after your bsub commands:
cd $LSB_CHKPNT_DIR
Write the LS-Dyna command you want to run. For example:
/usr/share/ls_dyna_path/ls960 endtime=2
i=/usr/share/ls_dyna_path/airbag.deploy.k ncpu=1
Example job scripts
All scripts must contain the ls_dyna method and the cd command to the checkpoint
directory set by LSF.
Job scripts with SMP LS-Dyna job embedded in the script. Environment variables
are set in the script.
% bsub < jobscript
Example job submission script:
#!/bin/sh
#BSUB -J LS_DYNA
#BSUB -k "/usr/share/
checkpoint_dir
method=ls_dyna"
#BSUB -o "/usr/share/output/output.%J"
cd $LSB_CHKPNT_DIR
setenv LS_DYNA_VAR1 VAL1
setenv LS_DYNA_VAR2 VAL2
cp /usr/share/datapool/input.data /home/usr1/input.data
/full_path/ls960 i=/home/usr1/input.data
Job scripts with SMP LS-Dyna job embedded in the script. Environment variables
are set in the script.
% bsub < jobscript
Example job submission script:
#!/bin/sh
#BSUB -J LS_DYNA
#BSUB -k "/usr/share/
checkpoint_dir
method=ls_dyna"
cd $LSB_CHKPNT_DIR
LS_DYNA_ENV=VAL;export LS_DYNA_ENV
/usr/share/ls_dyna_path/ls960 endtime=2
i=/usr/share/ls_dyna_path/airbag.deploy.k ncpu=1
exit $?
Job scripts with SMP LS-Dyna job embedded in the script. Environment variables
are not set in the script, and the settings must be read from a hidden file, .
envdump,
which the
echkpnt.ls_dyna program creates in the $LSB_CHKPNT_DIR
directory. The script must source the
./envdump file.
% bsub < jobscript