1 |
dfer |
1.1 |
#! /usr/bin/env bash |
2 |
|
|
|
3 |
|
|
# $Header: $ |
4 |
|
|
# $Name: $ |
5 |
|
|
|
6 |
|
|
### script to run testreport, tar the result, and send it to jmc@mitgcm.org |
7 |
|
|
### First start an interaction session on Columbia: |
8 |
|
|
### --> qsub -I -l ncpus=6 -l walltime=12:00:00 |
9 |
|
|
### and then launch the script: |
10 |
|
|
### --> ./script_testreport |
11 |
|
|
|
12 |
|
|
date_str=`date +%Y%m%d`"_0" |
13 |
|
|
|
14 |
|
|
. /usr/share/modules/init/bash |
15 |
|
|
module purge |
16 |
|
|
#module load modules scsl.1.5.0.0 intel-comp.8.1.024 mpt.1.12.0.0 pd-netcdf.3.6.0-p1 |
17 |
|
|
#module load modules scsl.1.6.1.0 intel-comp.9.1.039 mpt.1.12.0.nas pd-netcdf.3.6.0-p1 |
18 |
|
|
module load modules intel-comp.9.1.049 mpt.1.16.0.0 pd-netcdf.3.6.0-p1 |
19 |
|
|
module list |
20 |
|
|
|
21 |
|
|
cd /u/dfer/MITgcm/verification |
22 |
|
|
|
23 |
|
|
##### IEEE |
24 |
|
|
./testreport -of='../tools/build_options/linux_ia64_ifort+mpi_altix_nas' -mpi -ieee -match 10 -command='mpirun -np 2 ./mitgcmuv' -j 2 |
25 |
|
|
|
26 |
|
|
tdir1=`ls -dt1 tr_* | grep -v tr_out | head -1` |
27 |
|
|
sed "s/linux_ia64_ifort+mpi_altix_nas/linux_ia64_ifort+mpi_altix_nas_ieee/" $tdir1/summary.txt > $tdir1/toto |
28 |
|
|
mv -f $tdir1/toto $tdir1/summary.txt |
29 |
|
|
|
30 |
|
|
tdir2=tr_columbia-ieee_$date_str |
31 |
|
|
mv $tdir1 $tdir2 |
32 |
|
|
|
33 |
|
|
tdir3=$tdir2.tar.gz |
34 |
|
|
tar -czf $tdir3 $tdir2 |
35 |
|
|
|
36 |
|
|
../tools/mpack-1.6/mpack -s MITgcm-test -m 3555000 $tdir3 jmc@mitgcm.org |
37 |
|
|
|
38 |
|
|
./testreport -clean |
39 |
|
|
|
40 |
|
|
##### NO IEEE |
41 |
|
|
./testreport -of='../tools/build_options/linux_ia64_ifort+mpi_altix_nas' -mpi -noieee -match 10 -command='mpirun -np 2 ./mitgcmuv' -j 2 |
42 |
|
|
|
43 |
|
|
tdir1=`ls -dt1 tr_* | grep -v tr_out | head -1` |
44 |
|
|
sed "s/linux_ia64_ifort+mpi_altix_nas/linux_ia64_ifort+mpi_altix_nas_noieee/" $tdir1/summary.txt > $tdir1/toto |
45 |
|
|
mv -f $tdir1/toto $tdir1/summary.txt |
46 |
|
|
|
47 |
|
|
tdir2=tr_columbia-noieee_$date_str |
48 |
|
|
mv $tdir1 $tdir2 |
49 |
|
|
|
50 |
|
|
tdir3=$tdir2.tar.gz |
51 |
|
|
tar -czf $tdir3 $tdir2 |
52 |
|
|
|
53 |
|
|
../tools/mpack-1.6/mpack -s MITgcm-test -m 3555000 $tdir3 jmc@mitgcm.org |
54 |
|
|
|
55 |
|
|
./testreport -clean |
56 |
|
|
|