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 |
|
---|
7 | ulimit -S -s unlimited
|
---|
8 |
|
---|
9 | IFILE0=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 |
|
---|
18 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_fm/tools
|
---|
19 |
|
---|
20 | TOOL=ropp_fm_bg2ro_1d ; EXEC=$EXEC_DIR/$TOOL
|
---|
21 |
|
---|
22 | IFILE=$IFILE0
|
---|
23 |
|
---|
24 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.nc'/)
|
---|
25 |
|
---|
26 | TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.out'/) ; rm -f $TFILE
|
---|
27 |
|
---|
28 | date >> $TFILE
|
---|
29 | for 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
|
---|
34 | done
|
---|
35 | date >> $TFILE
|
---|
36 |
|
---|
37 | #fi # bypass the control
|
---|
38 |
|
---|
39 | #------------------------------------------------------
|
---|
40 | #1. Test1: ROPP10.0
|
---|
41 | #------------------------------------------------------
|
---|
42 |
|
---|
43 | #if false ; then # bypass the test
|
---|
44 |
|
---|
45 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP100_prototype/ropp_fm/tools
|
---|
46 |
|
---|
47 | TOOL=ropp_fm_bg2ro_1d ; EXEC=$EXEC_DIR/$TOOL
|
---|
48 |
|
---|
49 | IFILE=$IFILE0
|
---|
50 |
|
---|
51 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.nc'/)
|
---|
52 |
|
---|
53 | TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.out'/) ; rm -f $TFILE
|
---|
54 |
|
---|
55 | date >> $TFILE
|
---|
56 | for 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
|
---|
61 | done
|
---|
62 | date >> $TFILE
|
---|
63 |
|
---|
64 | #fi # bypass the test
|
---|
65 |
|
---|