/[MITgcm]/MITgcm/tools/example_scripts/faulks/test_lcs_fc5
ViewVC logotype

Contents of /MITgcm/tools/example_scripts/faulks/test_lcs_fc5

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Sat May 20 21:22:42 2006 UTC (18 years ago) by edhill
Branch: MAIN
Changes since 1.2: +19 -67 lines
test both g77 and gfortran

1 #! /usr/bin/env bash
2
3 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/faulks/test_lcs_fc5,v 1.2 2006/05/20 14:21:46 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
34
35 echo "Running testreport using:"
36 cd MITgcm/verification
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 cd MITgcm/verification
52 comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_gfortran -a edhill@mitgcm.org"
53 echo " \"$comm\""
54 echo "======================"
55 echo
56 $comm | tail -100
57
58 echo
59 echo "======================"
60 echo "Cleaning test directories:"
61 ./testreport -clean > /dev/null 2>&1
62 echo "======================"
63 echo
64
65 echo "Running testreport using:"
66 cd MITgcm/verification
67 comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_ifort+authors_v9 -a edhill@mitgcm.org"
68 echo " \"$comm\""
69 echo "======================"
70 echo
71 $comm | tail -100
72
73 echo
74 echo "======================"
75 echo "Cleaning test directories:"
76 ./testreport -clean > /dev/null 2>&1
77 echo "======================"
78 echo
79
80 echo "Running testreport using:"
81 export PGI=/usr/local/pkg/pgi/pgi-6.1-5
82 cd MITgcm/verification
83 comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_pgf77+authors_fc5 -a edhill@mitgcm.org"
84 echo " \"$comm\""
85 echo "======================"
86 echo
87 $comm | tail -100
88
89 echo
90 echo "======================"
91 echo "Cleaning test directories:"
92 ./testreport -clean > /dev/null 2>&1
93 echo "======================"
94 echo
95
96 echo "Running testreport using:"
97 comm="./testreport -adm $IEEE -a edhill@mitgcm.org"
98 if test "x$OPTFILE" != x ; then
99 comm="$comm -of=$OPTFILE"
100 fi
101 echo " \"$comm\""
102 echo "======================"
103 echo
104 $comm | tail -100
105

  ViewVC Help
Powered by ViewVC 1.1.22