/[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.1 - (hide annotations) (download)
Wed Dec 1 22:02:36 2004 UTC (19 years, 5 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint56b_post, checkpoint57a_pre, checkpoint57, checkpoint56c_post, checkpoint57b_post, checkpoint57c_post, checkpoint57a_post, checkpoint57c_pre
 o initial check-in

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

  ViewVC Help
Powered by ViewVC 1.1.22