updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / tools / build_test.csh
blob04a279e865166292111f96097aa77c50dfcb87d3
1 #!/bin/csh
3 set root = data1
4 set root = mmmtmp
6 echo starting
7 if ( ! -d /$root/${user} ) then
8 echo give me a break
9 exit ( 1 )
10 endif
11 cd /$root/${user}
13 if ( ! -d /$root/${user}/`hostname` ) then
14 mkdir /$root/${user}/`hostname`
15 endif
16 cd /$root/${user}/`hostname`
18 if ( ! -e /$root/${user}/wrfv2.tar ) then
19 echo need the wrf tar file
20 exit ( 2 )
21 endif
23 echo untar wrfv2
24 tar -xf ../wrfv2.tar
26 if ( `uname` == SunOS ) then
27 set OPTS = ( 1 3 )
28 else if ( ( `uname` == Linux ) && ( `hostname` == jacaranda ) ) then
29 set OPTS = ( 2 )
30 else if ( `uname` == Linux ) then
31 set OPTS = ( 1 2 3 )
32 else if ( `uname` == OSF1 ) then
33 set OPTS = ( 1 3 6 )
34 endif
36 foreach opt ( $OPTS )
37 cd /$root/${user}/`hostname`/WRFV2
39 foreach test ( em_real em_b_wave em_quarter_ss )
40 echo building $test for compiler option $opt `date`
42 clean -a >& /dev/null
44 echo "$opt" | ./configure >&! make.out.${test}.opt=${opt}
46 compile $test >>& make.out.${test}.opt=${opt}
48 if ( $test == em_real ) then
49 if ( ( ! -e main/real.exe ) || ( ! -e main/wrf.exe ) ) then
50 echo missing $test executables
51 exit ( 3 )
52 endif
53 else
54 if ( ( ! -e main/ideal.exe ) || ( ! -e main/wrf.exe ) ) then
55 echo missing $test executables
56 exit ( 4 )
57 endif
58 endif
59 echo $test exec build OK `date`
60 echo " "
62 end
63 end