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

Contents of /MITgcm_contrib/test_scripts/sx8/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, 1 month ago) by mlosch
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 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
3 set VENDOR=sxf90
4 set RUNIT="runit_"$VENDOR
5 set HERE=$cwd
6 set EXE='mpirun -np 2 ./mitgcmuv'
7 set OUTFILE=/home/sx8/mlosch/out_${VENDOR}
8 set JOBSCRIPT=job_${VENDOR}
9
10 if ( -e $OUTFILE) then
11 rm -r $OUTFILE
12 endif
13 set TDIR=/sx8/scr/mlosch/tmp_$VENDOR
14 if ( -e $TDIR ) then
15 rm -rf $TDIR
16 endif
17 mkdir $TDIR
18 cd $TDIR
19 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm >& cvs_co.log
20 if ( $status > 0 ) then
21 cat cvs_co.log
22 endif
23
24 cd MITgcm/verification
25
26 # create script to run model and to delay processing
27 cat << EOF >! $HERE/$RUNIT
28 #!/bin/sh
29 # submit the job
30 qsub -q sx8 ${HERE}/${JOBSCRIPT}
31
32 # wait until the job is finished; do this by waiting for output.txt to appear
33 while [ ! -e output.txt ]
34 do
35 sleep 10
36 done
37
38 EOF
39 chmod a+x $HERE/$RUNIT
40
41 set COMMAND=$HERE/$RUNIT
42
43 #
44 # create batch script
45 #
46 cat << EOF >! $HERE/$JOBSCRIPT
47 ######PBS -q sx8 # job queue not neccesary so far
48 #PBS -N mitgcm_${VENDOR} # give the job a name
49 #PBS -l cpunum_job=2 # cpus per node
50 #PBS -j o # join i/o
51 #PBS -S /bin/csh
52 #PBS -o $OUTFILE # o Where to write output
53 ## o Export all my environment variables to the job
54 ##PBS -V
55 #
56
57 cd \${PBS_O_WORKDIR}
58 $EXE
59 echo "NORMAL END" >> run.log
60 cp STDOUT.0000 output.txt
61
62 EOF
63
64 set OPTFILE=../tools/build_options/SUPER-UX_SX-8_sxf90+mpi_awi
65 # make sure that we do not use the cross compiler for testreport
66 unsetenv CC
67
68 ./testreport -mpi -match 10 -a jmc@mitgcm.org \
69 -of $OPTFILE -command $HERE/$RUNIT >& /dev/null
70
71 if ( $status > 0 ) then
72 echo "something wrong with testreport"
73 echo "keeping the working directory"
74 else
75 # everything OK: delete working directory
76 rm -rf $TDIR
77 endif

  ViewVC Help
Powered by ViewVC 1.1.22