1 |
mlosch |
1.1 |
#!/bin/csh -x |
2 |
|
|
#$Header: $ |
3 |
|
|
#$Name: $ |
4 |
|
|
# select the queue you want to run on |
5 |
|
|
#$ -q model.q |
6 |
|
|
# give the job a name |
7 |
|
|
#$ -N mitgcm_mpf77 |
8 |
|
|
# specify cluster runtime environment and request 20 CPUs (only for batch) |
9 |
|
|
## -pe cre 20 |
10 |
|
|
# |
11 |
|
|
# o Where to write output |
12 |
|
|
#$ -e /home/model/mlosch/err_mpf77 |
13 |
|
|
#$ -o /home/model/mlosch/out_mpf77 |
14 |
|
|
# |
15 |
|
|
# o Export all my environment variables to the job |
16 |
|
|
#$ -V |
17 |
|
|
# |
18 |
|
|
|
19 |
|
|
set VENDOR=mpf77 |
20 |
|
|
set RUNIT="runit_"$VENDOR |
21 |
|
|
set HERE=$cwd |
22 |
|
|
set EXE='mprun -np 2 ./mitgcmuv' |
23 |
|
|
|
24 |
|
|
cat << EOF > $HERE/$RUNIT |
25 |
|
|
#!/bin/csh |
26 |
|
|
|
27 |
|
|
$EXE |
28 |
|
|
|
29 |
|
|
cp STDOUT.0000 output.txt |
30 |
|
|
|
31 |
|
|
EOF |
32 |
|
|
chmod a+x $RUNIT |
33 |
|
|
|
34 |
|
|
set COMMAND=$HERE/$RUNIT |
35 |
|
|
|
36 |
|
|
set TDIR=/model/scratch/mlosch/tmp_$VENDOR |
37 |
|
|
if ( -e $TDIR ) then |
38 |
|
|
rm -rf $TDIR |
39 |
|
|
endif |
40 |
|
|
mkdir $TDIR |
41 |
|
|
cd $TDIR |
42 |
|
|
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm >& cvs_co.log |
43 |
|
|
if ( $status > 0 ) then |
44 |
|
|
cat cvs_co.log |
45 |
|
|
endif |
46 |
|
|
|
47 |
|
|
cd MITgcm/verification |
48 |
|
|
set OPTFILE=../tools/build_options/sunos_sun4u_mpf77+mpi_sunfire |
49 |
|
|
./testreport -postclean -mpi -of $OPTFILE -command $COMMAND -a 'edhill@mitgcm.org' >& /dev/null |