Ticket #554: test2.sh

File test2.sh, 1.7 KB (added by Ian Culverwell, 5 years ago)

test2.sh

Line 
1#/usr/bin/ksh
2#
3# Script to measure the speedup of ROPP10 cf ROPP9.1 as a result of removing the
4# file synchronisation described in #554.
5#
6
7ulimit -S -s unlimited
8
9IFILE0=data/IT-PP-02.nc # 50 profiles
10
11MFILE=data/MSIS_coeff.nc
12
13
14#------------------------------------------------------
15#0. Cntl: ROPP9.1
16#------------------------------------------------------
17
18#if false ; then # bypass the control
19
20EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_pp/tools
21
22TOOL=ropp_pp_invert_tool ; EXEC=$EXEC_DIR/$TOOL
23
24IFILE=$IFILE0
25
26CFILE=data/grassaf_invert_91.cf
27
28OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.nc'/)
29
30TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.out'/) ; rm -f $TFILE
31
32date >> $TFILE
33for i in $(seq 1 5) ; do
34 echo "\$i = $i"
35 echo "\$i = $i" >> $TFILE 2>&1
36 echo "$EXEC $IFILE -o $OFILE -d -c $CFILE -mfile $MFILE >> $TFILE 2>&1"
37 $EXEC $IFILE -o $OFILE -d -c $CFILE -mfile $MFILE >> $TFILE 2>&1
38done
39date >> $TFILE
40
41#fi # bypass the control
42
43#------------------------------------------------------
44#1. Test1: ROPP10.0
45#------------------------------------------------------
46
47#if false ; then # bypass the test
48
49EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP100_prototype/ropp_pp/tools
50
51TOOL=ropp_pp_invert_tool ; EXEC=$EXEC_DIR/$TOOL
52
53IFILE=$IFILE0
54
55CFILE=data/grassaf_invert_100.cf
56
57OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.nc'/)
58
59TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.out'/) ; rm -f $TFILE
60
61date >> $TFILE
62for i in $(seq 1 5) ; do
63 echo "\$i = $i"
64 echo "\$i = $i" >> $TFILE 2>&1
65 echo "$EXEC $IFILE -o $OFILE -d -c $CFILE -mfile $MFILE >> $TFILE 2>&1"
66 $EXEC $IFILE -o $OFILE -d -c $CFILE -mfile $MFILE >> $TFILE 2>&1
67done
68date >> $TFILE
69
70#fi # bypass the test
71