/[MITgcm]/MITgcm/tools/example_scripts/ACESgrid/itrda_test_all
ViewVC logotype

Contents of /MITgcm/tools/example_scripts/ACESgrid/itrda_test_all

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Sat Apr 29 15:32:10 2006 UTC (18 years, 1 month ago) by edhill
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58k_post, checkpoint58e_post, checkpoint58h_post, checkpoint58f_post, checkpoint58m_post, checkpoint58j_post, checkpoint58i_post, checkpoint58g_post
Changes since 1.5: +2 -2 lines
name change

1 #! /usr/bin/env bash
2
3 . /etc/profile.d/modules.sh
4 module list > .module_list 2>&1
5
6 cd /home/edhill/local/bin
7
8 # QSUB="/usr/local/bin/qsub"
9 # QSTAT="/usr/local/bin/qstat"
10 QSUB=qsub
11 QSTAT=qstat
12 MPACK="./mpack"
13
14 $QSUB ./itrda_gnu_test_mpi
15 $QSUB ./itrda_intel_test_mpi
16 $QSUB ./itrda_pgi_test_mpi
17
18 date_str=`date +%Y%m%d`"_0"
19
20 minutes=0
21 while test ! "x_"$M_g77"_"$M_ifc"_"$M_pgf77 = x_done_done_done ; do
22
23 sleep 300
24 minutes=$(( $minutes + 5 ))
25
26 for i in g77 ifc pgf77 ; do
27
28 JOB="eh3_"$i
29 comm="echo \$M_$i"
30 ready_to_send=`eval $comm`"_"`$QSTAT -a | grep edhill | grep $JOB | wc -l`
31
32 if test "x_$ready_to_send" = x__0 ; then
33 pat="/tmp/tr_itrda-$i"'*'
34 rm -rf $pat
35 run_dir="/net/ds-01/scratch-5/edhill/tmp_"$i"/MITgcm/verification"
36 tdir=`ls -1 $run_dir | grep -v tr_out | grep '^tr' | head -1`
37 if test ! "x$tdir" = x ; then
38 cp -ra $run_dir"/"$tdir "/tmp/tr_aces-"$i"_"$date_str
39 ( cd /tmp ; tar -czf "./tr_aces-"$i".tar.gz" "./tr_aces-"$i"_"$date_str )
40 $MPACK -s MITgcm-test -m 3555000 "/tmp/tr_aces-"$i".tar.gz" edhill@mitgcm.org
41 echo "Email sent for $i"
42 else
43 echo "Output not found so no email sent for $i"
44 fi
45 eval M_$i=done
46 fi
47 done
48
49 hrs=$(( $minutes / 60 ));
50 # "long" queue is 24hrs = 24*60min = 1440min
51 if test $minutes -gt 1440 ; then
52 echo "Time expired with $minutes minutes ($hrs hours)."
53 exit 1
54 fi
55
56 done
57
58 echo "All tests completed successfully."

  ViewVC Help
Powered by ViewVC 1.1.22