Ticket #554: test1.sh

File test1.sh, 1.6 KB (added by Ian Culverwell, 5 years ago)

test1.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-FM-07.nc # 500 profiles
10#IFILE0=data/IT-FM-04.nc # 1000 profiles
11
12#------------------------------------------------------
13#0. Cntl: ROPP9.1
14#------------------------------------------------------
15
16#if false ; then # bypass the control
17
18EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_fm/tools
19
20TOOL=ropp_fm_bg2ro_1d ; EXEC=$EXEC_DIR/$TOOL
21
22IFILE=$IFILE0
23
24OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.nc'/)
25
26TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.out'/) ; rm -f $TFILE
27
28date >> $TFILE
29for i in $(seq 1 5) ; do
30 echo "\$i = $i"
31 echo "\$i = $i" >> $TFILE 2>&1
32 echo "$EXEC $IFILE -o $OFILE -d -f >> $TFILE 2>&1"
33 $EXEC $IFILE -o $OFILE -d -f >> $TFILE 2>&1
34done
35date >> $TFILE
36
37#fi # bypass the control
38
39#------------------------------------------------------
40#1. Test1: ROPP10.0
41#------------------------------------------------------
42
43#if false ; then # bypass the test
44
45EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP100_prototype/ropp_fm/tools
46
47TOOL=ropp_fm_bg2ro_1d ; EXEC=$EXEC_DIR/$TOOL
48
49IFILE=$IFILE0
50
51OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.nc'/)
52
53TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.out'/) ; rm -f $TFILE
54
55date >> $TFILE
56for i in $(seq 1 5) ; do
57 echo "\$i = $i"
58 echo "\$i = $i" >> $TFILE 2>&1
59 echo "$EXEC $IFILE -o $OFILE -d -f >> $TFILE 2>&1"
60 $EXEC $IFILE -o $OFILE -d -f >> $TFILE 2>&1
61done
62date >> $TFILE
63
64#fi # bypass the test
65