12 |
if test -f /etc/profile.d/modules.sh ; then |
if test -f /etc/profile.d/modules.sh ; then |
13 |
. /etc/profile.d/modules.sh |
. /etc/profile.d/modules.sh |
14 |
fi |
fi |
15 |
# Note: added to pass big test (the 2 fizhi-cs-* test) |
# Note: added "ulimit -s unlimited" in file "~/.bashrc" |
16 |
ulimit -s unlimited |
# to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI |
17 |
|
|
18 |
|
dNam='aces' |
19 |
|
TST_DIR="$HOME/test_$dNam" |
20 |
|
echo "start from TST_DIR='$TST_DIR' at: "`date` |
21 |
|
|
22 |
umask 0022 |
umask 0022 |
23 |
#- to get case insensitive "ls" (and order of tested experiments) |
#- to get case insensitive "ls" (and order of tested experiments) |
24 |
export LC_ALL="en_US.UTF-8" |
export LC_ALL="en_US.UTF-8" |
25 |
|
|
|
TST_DIR="/home/jmc/test_ACES" |
|
26 |
HERE=$TST_DIR/output |
HERE=$TST_DIR/output |
|
#cd $HERE |
|
|
|
|
27 |
sfx='mth' |
sfx='mth' |
28 |
module add ifc/9.0.021 icc/9.0.021 intel/9.0 |
module add ifc/9.0.021 icc/9.0.021 intel/9.0 |
29 |
module add netcdf/3.6.1/icc |
module add netcdf/3.6.1/icc |
42 |
gcmDIR="MITgcm_$sfx" |
gcmDIR="MITgcm_$sfx" |
43 |
cd $TST_DIR |
cd $TST_DIR |
44 |
#- check for disk space: |
#- check for disk space: |
45 |
dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
#dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
46 |
if [ $dsp -gt 99 ] ; then |
#if [ $dsp -gt 99 ] ; then |
47 |
|
dsp=`df -P . | tail -1 | awk '{print $4}'` |
48 |
|
if [ $dsp -le 3200000 ] ; then |
49 |
echo 'Not enough space on this disk => do not run testreport.' |
echo 'Not enough space on this disk => do not run testreport.' |
50 |
df . |
df . |
51 |
exit |
exit |
52 |
fi |
fi |
53 |
if [ $checkOut -eq 1 ] ; then |
if [ $checkOut -eq 1 ] ; then |
54 |
if test -d $gcmDIR/CVS ; then |
if test -d $gcmDIR/CVS ; then |
55 |
/bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_? |
/bin/rm -rf $gcmDIR/verification/tr_${dNam}-${sfx}_????????_? |
56 |
# ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean ) |
# ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean ) |
57 |
echo "cvs update of dir $gcmDIR :" |
echo "cvs update of dir $gcmDIR :" |
58 |
( 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 |
86 |
exit |
exit |
87 |
fi |
fi |
88 |
|
|
89 |
echo ./testreport $options -of $OPTFILE -odir aces-$sfx |
echo ./testreport $options -of $OPTFILE -odir ${dNam}-$sfx |
90 |
./testreport $options -of $OPTFILE -odir aces-$sfx |
./testreport $options -of $OPTFILE -odir ${dNam}-$sfx |
91 |
|
|