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-PP-02.nc # 50 profiles
|
---|
10 |
|
---|
11 | MFILE=data/MSIS_coeff.nc
|
---|
12 |
|
---|
13 |
|
---|
14 | #------------------------------------------------------
|
---|
15 | #0. Cntl: ROPP9.1
|
---|
16 | #------------------------------------------------------
|
---|
17 |
|
---|
18 | #if false ; then # bypass the control
|
---|
19 |
|
---|
20 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_pp/tools
|
---|
21 |
|
---|
22 | TOOL=ropp_pp_invert_tool ; EXEC=$EXEC_DIR/$TOOL
|
---|
23 |
|
---|
24 | IFILE=$IFILE0
|
---|
25 |
|
---|
26 | CFILE=data/grassaf_invert_91.cf
|
---|
27 |
|
---|
28 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.nc'/)
|
---|
29 |
|
---|
30 | TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.out'/) ; rm -f $TFILE
|
---|
31 |
|
---|
32 | date >> $TFILE
|
---|
33 | for 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
|
---|
38 | done
|
---|
39 | date >> $TFILE
|
---|
40 |
|
---|
41 | #fi # bypass the control
|
---|
42 |
|
---|
43 | #------------------------------------------------------
|
---|
44 | #1. Test1: ROPP10.0
|
---|
45 | #------------------------------------------------------
|
---|
46 |
|
---|
47 | #if false ; then # bypass the test
|
---|
48 |
|
---|
49 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP100_prototype/ropp_pp/tools
|
---|
50 |
|
---|
51 | TOOL=ropp_pp_invert_tool ; EXEC=$EXEC_DIR/$TOOL
|
---|
52 |
|
---|
53 | IFILE=$IFILE0
|
---|
54 |
|
---|
55 | CFILE=data/grassaf_invert_100.cf
|
---|
56 |
|
---|
57 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.nc'/)
|
---|
58 |
|
---|
59 | TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.out'/) ; rm -f $TFILE
|
---|
60 |
|
---|
61 | date >> $TFILE
|
---|
62 | for 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
|
---|
67 | done
|
---|
68 | date >> $TFILE
|
---|
69 |
|
---|
70 | #fi # bypass the test
|
---|
71 |
|
---|