📄 chain3.bat
字号:
# Batch script for submitting beamplasma.inp simulation to the T3E# To use this script, copy it over to /usr/tmp/bruhwile/batch then# cd to that directory and execute the following command:## prompt> cqsub -q production -la premium chain3.bat# Specify administrative details##QSUB -s /bin/sh # Specify bash shell#QSUB -r c3_bat02 # Job name#QSUB -o chain3.out # Write NQS output to specified file#QSUB -e chain3.err # Write NQS error to specified file#QSUB -ro -re # Write output/error messages as they occur# Specify general parameters of the simulation##QSUB -lM 28Mw # Specify 28 Mw of memory#QSUB -lF 10Gb # Specify 10 Gb of disk space# Specify parallel specific parameters##QSUB -l mpp_p=2 # Reserve required processors#QSUB -l mpp_t=04:00:00 # Time limit per processorset echoechoecho "XOOPIC - Cray T3E batch script is beginning execution --"echo# Specify the number of processors to use.# This must be consistent with the mpp_p line above.NUM_PROC=2# Specify the number of stepsNUM_STEP=14222# Specify prefix for the file namesN_DUMPS="n3_"# Specify the base name for input/output filesFILE_NAME="beamplasmatest"# Specify which version of xoopic to execute:OOPIC_DIR="/u/mp278/bruhwile/projects/oopic"INPUT_DIR=$OOPIC_DIR"/inp"STORE_DIR="/usr/tmp/bruhwile/batch02"# copy input file and executable to local director,# set echo, turn on accounting, time job, etc.cd $TMPDIRcp $OOPIC_DIR/xg/xoopic .cp $INPUT_DIR/$FILE_NAME.inp .# turn on job accountingja# Copy previous dump files into local temp areaDUMP_FILES="`ls $STORE_DIR/$FILE_NAME.dmp*`"echoechofor i in $DUMP_FILES; do echo "Processing file " $i; cp -f $i .;done##############################################################################################################################################echoechoechompprun -n $NUM_PROC ./xoopic -i $FILE_NAME.inp -d $FILE_NAME -s $NUM_STEP -dp $NUM_STEP# Copy resulting output into local areaDUMP_FILES="`ls *.dmp*`"echoechofor i in $DUMP_FILES; do echo "Processing file " $i; cp -f $i $STORE_DIR; cp -f $i $STORE_DIR/${N_DUMPS}$i;done# Submit the next script in the chaincd $STORE_DIRcqsub -q production -la premium chain4.bat# turn off job accounting and exitja -sexit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -