/[MITgcm]/MITgcm_contrib/test_scripts/xd1/mitgcmtestreport
ViewVC logotype

Contents of /MITgcm_contrib/test_scripts/xd1/mitgcmtestreport

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


Revision 1.2 - (show annotations) (download)
Thu Jun 2 12:51:57 2016 UTC (9 years, 2 months ago) by mlosch
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
FILE REMOVED
- add scripts to run testreport on ollie
- remove directories that belong to machines that are long gone

1 #!/bin/csh -x
2 #$Header: /u/gcmpack/MITgcm_contrib/test_scripts/xd1/mitgcmtestreport,v 1.1 2006/09/06 08:29:16 mlosch Exp $
3 #$Name: $
4
5 #source /opt/gridengine/default/common/settings.csh
6 #
7 # fortran compiler
8 #
9 setenv PGI /opt/pgi
10 setenv PATH ${PGI}/linux86-64/5.2/bin:$PATH
11 setenv MANPATH $MANPATH":"/opt/pce/man:${PGI}/linux86-64/5.2/man
12 # this does not seem to be necessary
13 #setenv LM_LICENSE_FILE $PGI/license.dat
14 #
15 # mpi environment:
16 #
17 # mpich for pgi compiler verions 5.2
18 setenv MPICH /usr/mpich/mpich-1.2.6-pgi524
19 # mpich for g77: setenv MPICH /usr/mpich/mpich-1.2.6
20 setenv PATH ${MPICH}/bin:${PATH}
21 setenv MANPATH $MANPATH":"${MPICH}/man
22
23 set VENDOR=pgf77
24 set RUNIT="runit_"$VENDOR
25 set HERE=$cwd
26 set EXE='mpiexec ./mitgcmuv'
27 set OUTFILE=/home/xd1/mlosch/out_pgf77
28
29 #
30 # create batch script
31 #
32 cat << EOF >! $HERE/$RUNIT
33 #!/bin/csh -x
34 # select the queue you want to run on
35 #PBS -S /bin/csh
36 #PBS -j oe
37 # give the job a name
38 #PBS -N mitgcm_pgf77
39 # specify cluster runtime environment and request 2 CPUs
40 #PBS -q big
41 #PBS -l nodes=1:ppn=2
42 #
43 # o Where to write output
44 #PBS -o $OUTFILE
45 #
46 # o Export all my environment variables to the job
47 #PBS -V
48 #
49
50 cd \${PBS_O_WORKDIR}
51
52 $EXE
53 echo "NORMAL END" >> \${PBS_O_WORKDIR}/run.log
54 cp STDOUT.0000 output.txt
55
56 EOF
57 chmod a+x $RUNIT
58
59 set COMMAND="qsub -W block=true $HERE/$RUNIT"
60 set COMMAND="/usr/pbs/bin/qsub -W block=true $HERE/$RUNIT"
61
62 if ( -e $OUTFILE) then
63 rm -r $OUTFILE
64 endif
65 set TDIR=/home/xd1/mlosch/tmp_$VENDOR
66 if ( -e $TDIR ) then
67 rm -rf $TDIR
68 endif
69 mkdir $TDIR
70 cd $TDIR
71 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_verif_basic >& cvs_co.log
72 if ( $status > 0 ) then
73 cat cvs_co.log
74 endif
75
76 cd MITgcm/verification
77 set CMD=$cwd/command.qsub
78 cat >! $CMD <<EOF
79 $COMMAND
80 EOF
81 chmod 744 $CMD
82
83 set OPTFILE=../tools/build_options/linux_amd64_pgf77+mpi_xd1
84 ./testreport -mpi -a "mlosch@awi-bremerhaven.de" -of $OPTFILE -command $CMD >& /dev/null
85
86 # workaround for mailing the stuff
87 # set name of remote host where to do the mpack command
88 #set rmhost=belle.csail.mit.edu
89 set rmhost=rays1.awi-bremerhaven.de
90 # pack directory into an archive an compress it
91 set fname = `ls -dtr tr_xd1*`
92 tar czf ${fname}'.tar.gz' ${fname}
93 # copy gzipped archive to remote host
94 scp ${fname}'.tar.gz' $rmhost':'
95 # on the remote host execute the mpack command, that send the email
96 #ssh $rmhost '/u/u0/mlosch/bin/mpack -s MITgcm-test '$fname'.tar.gz edhill@mitgcm.org'
97 ssh $rmhost '/home/tphs1/mlosch/bin_sol/mpack -s MITgcm-test '$fname'.tar.gz edhill@mitgcm.org'
98 # wait a little, just to be sure everything is done
99 sleep 2
100 # remove archives
101 ssh $rmhost 'rm '$fname'.tar.gz'
102 rm $fname'.tar.gz'
103 exit
104
105 # do it again for copy and pasting
106 set rmhost=belle.csail.mit.edu
107 set fname = `ls -dtr tr_xd1*`
108 tar czf ${fname}'.tar.gz' ${fname}
109 scp ${fname}'.tar.gz' $rmhost':'
110 ssh $rmhost '/u/u0/mlosch/bin/mpack -s MITgcm-test '$fname'.tar.gz edhill@mitgcm.org'
111 sleep 2
112 ssh $rmhost 'rm '$fname'.tar.gz'
113 rm $fname'.tar.gz'

  ViewVC Help
Powered by ViewVC 1.1.22