r5152 | xinzhang | 2011-09-26 21:04:33 -0700 (Mon, 26 Sep 2011) | 3 lines
[wrffire.git] / wrfv2_fire / tools / regtest_esmf.csh
bloba67c6583e04ecd5d5420a8e46f49ea0b4deef877
1 #!/bin/csh
3 onintr clnup
5 /bin/mv Registry/Registry.EM Registry/Registry.EM-save
6 /bin/cp Registry/Registry.EM_SST Registry/Registry.EM
8 #clean -a
9 set hst=`hostname | cut -c1-2`
11 if ( "$hst" == "be" ) then # bluefire
12 if ( -f ~michalak/sourceme_esmf ) then # bluefire
13 source ~michalak/sourceme_esmf
14 set EXEC_WRF='bsub -K < ../tools/test4_0_ESMFSST.lsf.csh'
15 (cd run ; tar xf ~michalak/jan00_esmftest.tar.gz )
16 echo 3 | ./configure
17 setenv J "-j 4"
18 endif
19 endif
20 if ( "$hst" == "ma" ) then # manta
21 if ( -f ~johnm/sourceme_esmf ) then
22 source ~johnm/sourceme_esmf
23 (cd run ; tar xf ~johnm/jan00_esmftest.tar.gz )
24 echo 3 | ./configure
25 setenv J "-j 4"
26 set EXEC_WRF="qsub -sync y wrf.pbs"
27 cat > wrf.pbs << H2
28 #!/bin/csh
29 #PBS -l nodes=1:ppn=4
30 #PBS -m ae
31 #PBS -N WRF_ESMF_TEST
32 cd ${cwd}/run
33 setenv P4_GLOBMEMSIZE 20000000
34 time mpirun -machinefile \$PBS_NODEFILE -np 4 ./wrf_SST_ESMF.exe
36 endif
37 endif
38 ./compile wrf
39 skip:
40 if ( -x main/wrf_SST_ESMF.exe ) then
41 cd run
42 /bin/cp ../test/em_esmf_exp/namelist.input.jan00.ESMFSST namelist.input
43 /bin/rm -f rsl.*
44 echo $EXEC_WRF >! com
45 sh com
46 if ( -f rsl.error.0000 ) then
47 grep -q SUCCESS rsl.error.0000
48 if ( $status == 0 ) then
49 echo good show
50 else
51 echo failure
52 endif
53 else
54 echo failure
55 endif
56 cd ..
57 endif
59 clnup:
60 /bin/mv Registry/Registry.EM-save Registry.EM