1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # Test the multi-bufr tool bufr2ropp
|
---|
4 | #
|
---|
5 |
|
---|
6 | ROPP_ROOT=/data/users/idculv/ROPP
|
---|
7 |
|
---|
8 | #comp=gfortran
|
---|
9 | #comp=ifort17
|
---|
10 | comp=nagfor61
|
---|
11 |
|
---|
12 | exec1=bufr2ropp
|
---|
13 | exec2=ropp2bufr
|
---|
14 | exec3=eum2bufr
|
---|
15 |
|
---|
16 | mobufr_lib=$ROPP_ROOT/$comp/lib64/libmetdbbufr.a
|
---|
17 |
|
---|
18 | ecbufr_lib=$ROPP_ROOT/$comp/lib/libbufr.a
|
---|
19 |
|
---|
20 | eccodes_lib1=$ROPP_ROOT/$comp/lib64/libeccodes.a
|
---|
21 | eccodes_lib2=$ROPP_ROOT/$comp/lib64/libeccodes_f90.a
|
---|
22 |
|
---|
23 |
|
---|
24 | for mobufr in 1 ; do
|
---|
25 |
|
---|
26 | if [ $mobufr -eq 0 ] ; then
|
---|
27 | mv $mobufr_lib ${mobufr_lib/libmetdbbufr/.libmetdbbufr}
|
---|
28 | else
|
---|
29 | mv ${mobufr_lib/libmetdbbufr/.libmetdbbufr} $mobufr_lib
|
---|
30 | fi
|
---|
31 |
|
---|
32 | for ecbufr in 1 ; do
|
---|
33 |
|
---|
34 | if [ $ecbufr -eq 0 ] ; then
|
---|
35 | mv $ecbufr_lib ${ecbufr_lib/libbufr/.libbufr}
|
---|
36 | else
|
---|
37 | mv ${ecbufr_lib/libbufr/.libbufr} $ecbufr_lib
|
---|
38 | fi
|
---|
39 |
|
---|
40 | for eccodes in 1 ; do
|
---|
41 |
|
---|
42 | if [ $eccodes -eq 0 ] ; then
|
---|
43 | mv $eccodes_lib1 ${eccodes_lib1/libeccodes/.libeccodes}
|
---|
44 | mv $eccodes_lib2 ${eccodes_lib2/libeccodes/.libeccodes}
|
---|
45 | else
|
---|
46 | mv ${eccodes_lib1/libeccodes/.libeccodes} $eccodes_lib1
|
---|
47 | mv ${eccodes_lib2/libeccodes/.libeccodes} $eccodes_lib2
|
---|
48 | fi
|
---|
49 |
|
---|
50 | ofile=${PWD}/test4_${mobufr}${ecbufr}${eccodes}_${comp}.out
|
---|
51 |
|
---|
52 | echo \$comp \$mobufr \$ecbufr \$eccodes = $comp $mobufr $ecbufr $eccodes
|
---|
53 |
|
---|
54 | echo \$comp \$mobufr \$ecbufr \$eccodes = \$comp $mobufr $ecbufr $eccodes > $ofile 2>&1
|
---|
55 |
|
---|
56 | rm ${exec1} ${exec1}_mobufr ${exec1}_ecbufr ${exec1}_eccodes
|
---|
57 | rm ${exec2} ${exec2}_mobufr ${exec2}_ecbufr ${exec2}_eccodes
|
---|
58 | rm ${exec3} ${exec3}_mobufr ${exec3}_ecbufr ${exec3}_eccodes
|
---|
59 |
|
---|
60 | cd ../
|
---|
61 |
|
---|
62 | ../configure/ropp_configure_${comp}_linux >> $ofile 2>&1
|
---|
63 |
|
---|
64 | cd tools
|
---|
65 |
|
---|
66 | make clean >> $ofile 2>&1
|
---|
67 |
|
---|
68 | make install >> $ofile 2>&1
|
---|
69 |
|
---|
70 | ls -ltr ${exec1}* |tail >> $ofile 2>&1
|
---|
71 | ls -ltr ${exec2}* |tail >> $ofile 2>&1
|
---|
72 | ls -ltr ${exec3}* |tail >> $ofile 2>&1
|
---|
73 |
|
---|
74 | cd ../tests
|
---|
75 |
|
---|
76 | make clean >> $ofile 2>&1
|
---|
77 |
|
---|
78 | make >> $ofile 2>&1
|
---|
79 |
|
---|
80 | make test >> $ofile 2>&1
|
---|
81 |
|
---|
82 | cd ../tools
|
---|
83 |
|
---|
84 | done
|
---|
85 |
|
---|
86 | done
|
---|
87 |
|
---|
88 | done
|
---|
89 |
|
---|