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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/itrda_test_all

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


Revision 1.8 - (hide annotations) (download)
Thu Aug 10 16:53:04 2006 UTC (17 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58r_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint58u_post, checkpoint59n, checkpoint59i, checkpoint58y_post, checkpoint59k, checkpoint59j, checkpoint59, mitgcm_mapl_00, checkpoint58n_post, checkpoint58x_post, checkpoint59h, checkpoint58v_post, checkpoint58s_post, checkpoint58w_post, checkpoint58p_post, checkpoint58t_post, checkpoint58q_post, checkpoint59l, checkpoint58o_post
Changes since 1.7: +3 -2 lines
add multi-threaded testing to the list of tests.

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

  ViewVC Help
Powered by ViewVC 1.1.22