3 |
#PBS -q one |
#PBS -q one |
4 |
#PBS -N tst_ifc |
#PBS -N tst_ifc |
5 |
#PBS -l nodes=1:ppn=6 |
#PBS -l nodes=1:ppn=6 |
6 |
#PBS -e /data/jm_c/test_acesgrid/output/tst_ifc.stderr |
#PBS -e /mit/jm_c/test_acesgrid/output/tst_ifc.stderr |
7 |
#PBS -o /data/jm_c/test_acesgrid/output/tst_ifc.stdout |
#PBS -o /mit/jm_c/test_acesgrid/output/tst_ifc.stdout |
8 |
|
|
9 |
# $Header$ |
# $Header$ |
10 |
# $Name$ |
# $Name$ |
15 |
# Note: added "ulimit -s unlimited" in file "~/.bashrc" |
# Note: added "ulimit -s unlimited" in file "~/.bashrc" |
16 |
# to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI |
# to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI |
17 |
|
|
|
dNam='acesgrid' |
|
|
TST_DIR="/data/jm_c/test_$dNam" |
|
|
echo "start from TST_DIR='$TST_DIR' at: "`date` |
|
|
|
|
18 |
umask 0022 |
umask 0022 |
19 |
#- to get case insensitive "ls" (and order of tested experiments) |
#- to get case insensitive "ls" (and order of tested experiments) |
20 |
export LC_ALL="en_US.UTF-8" |
export LC_ALL="en_US.UTF-8" |
21 |
|
echo " running on: "`hostname` |
22 |
|
|
23 |
|
dNam='acesgrid' |
24 |
|
HERE="$HOME/test_$dNam" |
25 |
|
SavD="$HERE/send" |
26 |
|
SEND="ssh login $SavD/mpack" |
27 |
|
TST_DIR="/scratch/jm_c/test_$dNam" |
28 |
|
|
29 |
|
if test -d $TST_DIR ; then |
30 |
|
echo "start from TST_DIR='$TST_DIR' at: "`date` |
31 |
|
else |
32 |
|
if test ! -d /scratch/jm_c ; then mkdir /scratch/jm_c ; fi |
33 |
|
if test ! -d $TST_DIR ; then mkdir $TST_DIR ; fi |
34 |
|
if test ! -d $TST_DIR ; then |
35 |
|
echo "ERROR: Can't create directory \"$TST_DIR\"" |
36 |
|
exit 1 |
37 |
|
fi |
38 |
|
echo "start in new dir TST_DIR='$TST_DIR' at: "`date` |
39 |
|
fi |
40 |
|
|
|
HERE=$TST_DIR/output |
|
41 |
sfx='ifc' |
sfx='ifc' |
42 |
export MODULEPATH="/mit/jahn/usr/modulefiles:${MODULEPATH}" |
export MODULEPATH="/mit/jahn/usr/modulefiles:${MODULEPATH}" |
43 |
module add intel |
module add intel |
50 |
#if [ $dAlt -eq 1 ] ; then options="$options -fast" ; fi |
#if [ $dAlt -eq 1 ] ; then options="$options -fast" ; fi |
51 |
|
|
52 |
#- keep a copy of MPI_MFILE: |
#- keep a copy of MPI_MFILE: |
53 |
cp -p $PBS_NODEFILE $HERE"/mf_"$sfx |
cp -p $PBS_NODEFILE $HERE"/output/mf_"$sfx |
54 |
|
|
55 |
checkOut=1 |
checkOut=2 |
56 |
#options="$options -nc" ; checkOut=0 |
#options="$options -nc" ; checkOut=1 |
57 |
#options="$options -q" ; checkOut=0 |
#options="$options -q" ; checkOut=0 |
58 |
|
|
59 |
addExp=0 |
addExp=0 |
64 |
#dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
#dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
65 |
#if [ $dsp -gt 99 ] ; then |
#if [ $dsp -gt 99 ] ; then |
66 |
dsp=`df -P . | tail -1 | awk '{print $4}'` |
dsp=`df -P . | tail -1 | awk '{print $4}'` |
67 |
if [ $dsp -le 200000000 ] ; then |
if [ $dsp -le 100000000 ] ; then |
68 |
echo 'Not enough space on this disk => do not run testreport.' |
echo 'Not enough space on this disk => do not run testreport.' |
69 |
df . |
df . |
70 |
exit |
exit |
126 |
exit |
exit |
127 |
fi |
fi |
128 |
|
|
|
SavD="$HOME/test_$dNam/send" |
|
|
SEND="ssh login $SavD/mpack" |
|
|
|
|
129 |
if [ $dAlt -eq 1 ] ; then |
if [ $dAlt -eq 1 ] ; then |
130 |
options="$options -fast" |
options="$options -fast" |
131 |
|
|