1 |
jmc |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
#PBS -q short |
4 |
|
|
#PBS -N run_tst_ifc |
5 |
jmc |
1.3 |
#PBS -l nodes=1:ppn=6:sandy |
6 |
jmc |
1.1 |
#PBS -e /home/jm_c/test_svante/output/run_tst_ifc.stderr |
7 |
|
|
#PBS -o /home/jm_c/test_svante/output/run_tst_ifc.stdout |
8 |
|
|
##PBS -j oe |
9 |
|
|
|
10 |
jmc |
1.4 |
# $Header: /u/gcmpack/MITgcm_contrib/test_scripts/svante/run_tst_ifc.pbs,v 1.3 2015/06/16 18:56:23 jmc Exp $ |
11 |
jmc |
1.1 |
|
12 |
|
|
if test -f /etc/profile.d/modules.sh ; then |
13 |
|
|
. /etc/profile.d/modules.sh |
14 |
|
|
fi |
15 |
|
|
# Note: added "limit stacksize unlimited" in file "~/.tcshrc" |
16 |
|
|
# to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI |
17 |
|
|
|
18 |
|
|
umask 0022 |
19 |
|
|
#- to get case insensitive "ls" (and order of tested experiments) |
20 |
|
|
export LC_ALL="en_US.UTF-8" |
21 |
|
|
echo " running on: "`hostname` |
22 |
|
|
|
23 |
|
|
dNam='svante' |
24 |
|
|
HERE="$HOME/test_$dNam" |
25 |
|
|
OUTP="$HERE/output"; SavD="$HERE/send" |
26 |
|
|
SEND="ssh svante $SavD/mpack" |
27 |
jmc |
1.2 |
TST_DIR="/net/fs09/d0/jm_c/test_${dNam}" |
28 |
jmc |
1.1 |
|
29 |
|
|
if test -d $TST_DIR ; then |
30 |
|
|
echo "start from TST_DIR='$TST_DIR' at: "`date` |
31 |
|
|
else |
32 |
|
|
echo "ERROR: missing directory \"$TST_DIR\"" |
33 |
|
|
exit 1 |
34 |
|
|
fi |
35 |
|
|
|
36 |
|
|
sfx='ifc' |
37 |
|
|
|
38 |
|
|
module add intel |
39 |
|
|
module add mvapich2 |
40 |
|
|
OPTFILE="../tools/build_options/linux_amd64_ifort11" |
41 |
|
|
options="-MPI 6 -ro" |
42 |
|
|
#options="$options -t hs94.cs-32x32x5" |
43 |
|
|
#EXE="mpirun -v -all-local -np TR_NPROC ./mitgcmuv" |
44 |
|
|
|
45 |
|
|
dInWeek=`date +%a` |
46 |
|
|
if test "x$dInWeek" = xSun ; then |
47 |
|
|
options="$options -fast" |
48 |
|
|
#else |
49 |
|
|
# options="$options -devel" |
50 |
|
|
fi |
51 |
|
|
|
52 |
|
|
#- need this to get "staf": |
53 |
|
|
#export PATH="$PATH:$HOME/bin" |
54 |
|
|
|
55 |
|
|
gcmDIR="MITgcm_$sfx" |
56 |
|
|
cd $TST_DIR |
57 |
|
|
|
58 |
|
|
#- change dir to $gcmDIR/verification dir: |
59 |
|
|
if test -e $gcmDIR/verification ; then |
60 |
jmc |
1.4 |
echo " dir $gcmDIR/verification exist" |
61 |
jmc |
1.1 |
cd $gcmDIR/verification |
62 |
|
|
else |
63 |
|
|
echo "no dir: $gcmDIR/verification => exit" |
64 |
|
|
exit |
65 |
|
|
fi |
66 |
|
|
|
67 |
|
|
echo ./testreport $options -of $OPTFILE -odir ${dNam}-$sfx \ |
68 |
|
|
-send \"$SEND\" -sd $SavD -a jmc@mitgcm.org |
69 |
|
|
./testreport $options -of $OPTFILE -odir ${dNam}-$sfx \ |
70 |
|
|
-send "$SEND" -sd $SavD -a jmc@mitgcm.org |
71 |
|
|
|
72 |
|
|
|
73 |
|
|
echo '' |
74 |
|
|
#echo ../tools/do_tst_2+2 -mpi -exe \"$EXE\" -o ${dNam}-$sfx \ |
75 |
|
|
#../tools/do_tst_2+2 -mpi -exe "$EXE" -o ${dNam}-$sfx \ |
76 |
|
|
echo ../tools/do_tst_2+2 -mpi -o ${dNam}-$sfx \ |
77 |
|
|
-send \"$SEND\" -sd $SavD -a jmc@mitgcm.org |
78 |
|
|
../tools/do_tst_2+2 -mpi -o ${dNam}-$sfx \ |
79 |
|
|
-send "$SEND" -sd $SavD -a jmc@mitgcm.org |
80 |
|
|
|
81 |
|
|
exit |