17 |
# Note: added "ulimit -s unlimited" in file "~/.bashrc" |
# Note: added "ulimit -s unlimited" in file "~/.bashrc" |
18 |
# 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 |
19 |
|
|
20 |
|
dNam='aces' |
21 |
|
TST_DIR="$HOME/test_$dNam" |
22 |
|
echo "start from TST_DIR='$TST_DIR' at: "`date` |
23 |
|
|
24 |
umask 0022 |
umask 0022 |
25 |
#- to get case insensitive "ls" (and order of tested experiments) |
#- to get case insensitive "ls" (and order of tested experiments) |
26 |
export LC_ALL="en_US.UTF-8" |
export LC_ALL="en_US.UTF-8" |
27 |
|
|
|
TST_DIR="/home/jmc/test_ACES" |
|
28 |
HERE=$TST_DIR/output |
HERE=$TST_DIR/output |
|
#cd $HERE |
|
|
|
|
29 |
sfx='ifc' |
sfx='ifc' |
30 |
module add mpich/intel |
module add mpich/intel |
31 |
module add netcdf/3.6.1/icc |
module add netcdf/3.6.1/icc |
45 |
gcmDIR="MITgcm_$sfx" |
gcmDIR="MITgcm_$sfx" |
46 |
cd $TST_DIR |
cd $TST_DIR |
47 |
#- check for disk space: |
#- check for disk space: |
48 |
dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
#dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
49 |
if [ $dsp -gt 99 ] ; then |
#if [ $dsp -gt 99 ] ; then |
50 |
|
dsp=`df -P . | tail -1 | awk '{print $4}'` |
51 |
|
if [ $dsp -le 3200000 ] ; then |
52 |
echo 'Not enough space on this disk => do not run testreport.' |
echo 'Not enough space on this disk => do not run testreport.' |
53 |
df . |
df . |
54 |
exit |
exit |
55 |
fi |
fi |
56 |
if [ $checkOut -eq 1 ] ; then |
if [ $checkOut -eq 1 ] ; then |
57 |
if test -d $gcmDIR/CVS ; then |
if test -d $gcmDIR/CVS ; then |
58 |
/bin/rm -rf $gcmDIR/verification/??_aces-${sfx}_????????_? |
/bin/rm -rf $gcmDIR/verification/??_${dNam}-${sfx}_????????_? |
59 |
( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean ) |
( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean ) |
60 |
echo "cvs update of dir $gcmDIR :" |
echo "cvs update of dir $gcmDIR :" |
61 |
( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1 |
( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1 |
89 |
exit |
exit |
90 |
fi |
fi |
91 |
|
|
92 |
echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx |
echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir ${dNam}-$sfx |
93 |
./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx |
./testreport $options -of $OPTFILE -command "$EXE" -odir ${dNam}-$sfx |
94 |
|
|
95 |
echo '' |
echo '' |
96 |
echo ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe \"$EXE\" -o aces-$sfx -a NONE |
echo ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe \"$EXE\" -o ${dNam}-$sfx -a NONE |
97 |
../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe "$EXE" -o aces-$sfx -a NONE |
../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe "$EXE" -o ${dNam}-$sfx -a NONE |
98 |
|
|