1 |
#! /usr/bin/env bash |
2 |
|
3 |
# $Header: /u/gcmpack/MITgcm/tools/example_scripts/faulks/test_lcs_fc5,v 1.4 2006/05/20 21:39:18 edhill Exp $ |
4 |
|
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 |
tdir=$TESTDIR |
24 |
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 |
cvs co MITgcm > /dev/null 2>&1 |
32 |
echo " done" |
33 |
cd MITgcm/verification |
34 |
|
35 |
|
36 |
echo "Running testreport using:" |
37 |
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_g77 -a edhill@mitgcm.org" |
38 |
echo " \"$comm\"" |
39 |
echo "======================" |
40 |
echo |
41 |
$comm | tail -100 |
42 |
|
43 |
echo |
44 |
echo "======================" |
45 |
echo "Cleaning test directories:" |
46 |
./testreport -clean > /dev/null 2>&1 |
47 |
echo "======================" |
48 |
echo |
49 |
|
50 |
echo "Running testreport using:" |
51 |
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_gfortran -a edhill@mitgcm.org" |
52 |
echo " \"$comm\"" |
53 |
echo "======================" |
54 |
echo |
55 |
$comm | tail -100 |
56 |
|
57 |
echo |
58 |
echo "======================" |
59 |
echo "Cleaning test directories:" |
60 |
./testreport -clean > /dev/null 2>&1 |
61 |
echo "======================" |
62 |
echo |
63 |
|
64 |
echo "Running testreport using:" |
65 |
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_ifort+authors_v9 -a edhill@mitgcm.org" |
66 |
echo " \"$comm\"" |
67 |
echo "======================" |
68 |
echo |
69 |
$comm | tail -100 |
70 |
|
71 |
echo |
72 |
echo "======================" |
73 |
echo "Cleaning test directories:" |
74 |
./testreport -clean > /dev/null 2>&1 |
75 |
echo "======================" |
76 |
echo |
77 |
|
78 |
echo "Running testreport using:" |
79 |
export PGI=/usr/local/pkg/pgi/pgi-6.1-5 |
80 |
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_pgf77+authors_fc5 -a edhill@mitgcm.org" |
81 |
echo " \"$comm\"" |
82 |
echo "======================" |
83 |
echo |
84 |
$comm | tail -100 |
85 |
|
86 |
echo |
87 |
echo "======================" |
88 |
echo "Cleaning test directories:" |
89 |
./testreport -clean > /dev/null 2>&1 |
90 |
echo "======================" |
91 |
echo |
92 |
|
93 |
echo "Running testreport using:" |
94 |
comm="./testreport -adm $IEEE -of ../tools/build_options/linux_ia32_g77 -a edhill@mitgcm.org" |
95 |
echo " \"$comm\"" |
96 |
echo "======================" |
97 |
echo |
98 |
$comm | tail -100 |
99 |
|
100 |
echo |
101 |
echo "======================" |
102 |
echo "Cleaning test directories:" |
103 |
./testreport -clean > /dev/null 2>&1 |
104 |
echo "======================" |
105 |
echo |
106 |
|
107 |
echo "Running testreport using:" |
108 |
export OMP_NUM_THREADS=2 |
109 |
comm="./testreport -mth -of ../tools/build_options/linux_ia32_ifort.v9+mth" |
110 |
echo " \"$comm\"" |
111 |
echo "======================" |
112 |
echo |
113 |
$comm | tail -100 |
114 |
|