#!/bin/bash
#PBS -l ncpus=8
#PBS -l walltime=48:00:00
#PBS -l mem=32gb
#PBS -l jobfs=160gb
#PBS -j oe
mkdir ${PBS_JOBFS}/test
cd ${PBS_O_WORKDIR}
cp main test.in ${PBS_JOBFS}/test
cd ${PBS_JOBFS}/test
export OMP_NUM_THREADS=8
export MKL_NUM_THREADS=8
export MKL_PARDISO_OOC_MAX_CORE_SIZE=32768
export MKL_PARDISO_OOC_MAX_SWAP_SIZE=4096
ulimit -s unlimited
export KMP_STACKSIZE=32M
./main test.in 2>&1 | tee -a output.log
cd ..
tar -cjf test_$(date +%y%m%d%H%M)_$$.tbz test/
cp *.tbz ${PBS_O_WORKDIR}
