1 |
edhill |
1.1 |
#! /usr/bin/env bash |
2 |
|
|
|
3 |
jmc |
1.10 |
# $Header: /u/gcmpack/MITgcm/tools/example_scripts/faulks/test_lcs_fc5,v 1.9 2006/11/20 20:14:14 jmc Exp $ |
4 |
edhill |
1.1 |
|
5 |
|
|
# Ed Hill |
6 |
|
|
|
7 |
|
|
# Test script for MITgcm that should work on most of the lcs.mit.edu |
8 |
|
|
# Linux machines. |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
# defaults |
12 |
|
|
export PATH='/usr/local/bin:/bin:/usr/bin' |
13 |
|
|
OPTFILE= |
14 |
|
|
TESTDIR="/scratch/edhill/test_"`hostname` |
15 |
|
|
IEEE="-ieee" |
16 |
|
|
|
17 |
|
|
|
18 |
|
|
# Turn off stack limit for FIZHI |
19 |
|
|
ulimit -s unlimited |
20 |
|
|
|
21 |
|
|
echo -n "Creating a temp directory ..." |
22 |
|
|
mach=`hostname` |
23 |
edhill |
1.3 |
tdir=$TESTDIR |
24 |
edhill |
1.1 |
test -e $tdir && rm -rf $tdir |
25 |
|
|
mkdir $tdir |
26 |
|
|
echo " done" |
27 |
|
|
|
28 |
|
|
echo -n "Downloading the MITgcm code from CVS pserver..." |
29 |
|
|
cd $tdir |
30 |
|
|
export CVSROOT='/u/gcmpack' |
31 |
jmc |
1.10 |
cvs co -P MITgcm > /dev/null 2>&1 |
32 |
edhill |
1.1 |
echo " done" |
33 |
edhill |
1.4 |
cd MITgcm/verification |
34 |
edhill |
1.1 |
|
35 |
jmc |
1.9 |
echo "Running testreport using:" |
36 |
|
|
comm="./testreport -adm $IEEE -a edhill@mitgcm.org" |
37 |
|
|
echo " \"$comm\"" |
38 |
|
|
echo "======================" |
39 |
|
|
echo |
40 |
|
|
$comm | tail -100 |
41 |
|
|
|
42 |
|
|
echo |
43 |
|
|
echo "======================" |
44 |
|
|
echo "Cleaning test directories:" |
45 |
|
|
./testreport -clean > /dev/null 2>&1 |
46 |
|
|
echo "======================" |
47 |
|
|
echo |
48 |
edhill |
1.3 |
|
49 |
edhill |
1.1 |
echo "Running testreport using:" |
50 |
edhill |
1.3 |
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_g77 -a edhill@mitgcm.org" |
51 |
|
|
echo " \"$comm\"" |
52 |
|
|
echo "======================" |
53 |
|
|
echo |
54 |
|
|
$comm | tail -100 |
55 |
|
|
|
56 |
|
|
echo |
57 |
|
|
echo "======================" |
58 |
|
|
echo "Cleaning test directories:" |
59 |
|
|
./testreport -clean > /dev/null 2>&1 |
60 |
|
|
echo "======================" |
61 |
|
|
echo |
62 |
|
|
|
63 |
|
|
echo "Running testreport using:" |
64 |
|
|
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_gfortran -a edhill@mitgcm.org" |
65 |
edhill |
1.1 |
echo " \"$comm\"" |
66 |
|
|
echo "======================" |
67 |
|
|
echo |
68 |
|
|
$comm | tail -100 |
69 |
|
|
|
70 |
|
|
echo |
71 |
|
|
echo "======================" |
72 |
|
|
echo "Cleaning test directories:" |
73 |
|
|
./testreport -clean > /dev/null 2>&1 |
74 |
|
|
echo "======================" |
75 |
|
|
echo |
76 |
|
|
|
77 |
|
|
echo "Running testreport using:" |
78 |
edhill |
1.2 |
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_ifort+authors_v9 -a edhill@mitgcm.org" |
79 |
edhill |
1.1 |
echo " \"$comm\"" |
80 |
|
|
echo "======================" |
81 |
|
|
echo |
82 |
|
|
$comm | tail -100 |
83 |
|
|
|
84 |
|
|
echo |
85 |
|
|
echo "======================" |
86 |
|
|
echo "Cleaning test directories:" |
87 |
|
|
./testreport -clean > /dev/null 2>&1 |
88 |
|
|
echo "======================" |
89 |
|
|
echo |
90 |
|
|
|
91 |
|
|
echo "Running testreport using:" |
92 |
|
|
export PGI=/usr/local/pkg/pgi/pgi-6.1-5 |
93 |
|
|
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_pgf77+authors_fc5 -a edhill@mitgcm.org" |
94 |
|
|
echo " \"$comm\"" |
95 |
|
|
echo "======================" |
96 |
|
|
echo |
97 |
|
|
$comm | tail -100 |
98 |
|
|
|
99 |
|
|
echo |
100 |
|
|
echo "======================" |
101 |
|
|
echo "Cleaning test directories:" |
102 |
|
|
./testreport -clean > /dev/null 2>&1 |
103 |
|
|
echo "======================" |
104 |
|
|
echo |
105 |
|
|
|
106 |
|
|
echo "Running testreport using:" |
107 |
edhill |
1.5 |
export OMP_NUM_THREADS=2 |
108 |
jmc |
1.7 |
export KMP_STACKSIZE=400m |
109 |
edhill |
1.6 |
comm="./testreport -mth -of ../tools/build_options/linux_ia32_ifort.v9+mth -a edhill@mitgcm.org" |
110 |
edhill |
1.5 |
echo " \"$comm\"" |
111 |
|
|
echo "======================" |
112 |
|
|
echo |
113 |
|
|
$comm | tail -100 |
114 |
|
|
|