143 |
# Create the "latest" links |
# Create the "latest" links |
144 |
echo "Creating the \"latest\" file for each machine: " |
echo "Creating the \"latest\" file for each machine: " |
145 |
LATEST=$OUTDIR"/latest_"$PERIOD".html" |
LATEST=$OUTDIR"/latest_"$PERIOD".html" |
146 |
|
the_date=`date` |
147 |
cat > $LATEST << EOF |
cat > $LATEST << EOF |
148 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
149 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
164 |
|
|
165 |
</head> |
</head> |
166 |
<body> |
<body> |
167 |
<p>To enhance and maintain portability, the MITgcm model is tested |
<p>The MITgcm model is tested |
168 |
(compiled and run) in an automated fashion on a varirety of |
(compiled and run) in an automated fashion on a varirety of |
169 |
different machines. The following is a summary of the MITgcm |
different machines. The following is a summary of the MITgcm |
170 |
testing/verification suite for the time period: <b>$PERIOD</b>.</p> |
verification suite for the time period: <b>$PERIOD</b>.</p> |
171 |
|
|
172 |
<p>The machine naming scheme is:<br /></p> |
<p>The machine naming scheme is:<br /></p> |
173 |
<table align="center" cellpadding="0" border="0"> |
<table align="center" cellpadding="0" border="0"> |
174 |
<tr bgcolor="#00cccc"> <td><b>Machine Type</b></td> <td><b>"Nickname"</b></td> |
<tr bgcolor="#00cccc"> <td><b>Machine Type</b></td> <td><b>Nickname</b></td> |
175 |
<td><b>Notes</b></td> </tr> |
<td><b>Notes</b></td> </tr> |
176 |
|
|
177 |
<tr bgcolor="#bbffdd"> <td>Intel P4</td> <td>"faulks"</td> |
<tr bgcolor="#bbffdd"> <td>Intel P4</td> <td>"faulks"</td> |
203 |
<tr bgcolor="#bbffdd"> <td> IBM POWER4 SP </td> <td>"bs"</td> |
<tr bgcolor="#bbffdd"> <td> IBM POWER4 SP </td> <td>"bs"</td> |
204 |
<td><a href="http://www.scd.ucar.edu/computers/bluesky/">NCAR Bluesky |
<td><a href="http://www.scd.ucar.edu/computers/bluesky/">NCAR Bluesky |
205 |
</a></td> </tr> |
</a></td> </tr> |
206 |
|
<tr bgcolor="#bbddff"> <td> AMD Opteron </td> <td>"eaps"</td> |
207 |
|
<td>SuSE Linux 9.0 (x86-64)</td> </tr> |
208 |
|
|
209 |
<!-- |
<!-- |
210 |
<tr bgcolor="#bbddff"> <td> </td> <td>""</td> |
<tr bgcolor="#bbddff"> <td> </td> <td>""</td> |
214 |
</table> |
</table> |
215 |
|
|
216 |
<p><br /> |
<p><br /> |
217 |
The complete output for the testing/verification runs can be found in |
The complete output for the verification runs can be found in |
218 |
<a href="http://mitgcm.org/testing/summary/">the summary pages</a>. |
<a href="http://mitgcm.org/testing/summary/">the summary pages</a> |
219 |
|
and the <a href="http://mitgcm.org/testing/results/">testing archives</a>. |
220 |
The latest reports are:</p> |
The latest reports are:</p> |
221 |
<table align="center" cellpadding="0" cellspacing="0" border="0" width="95%"> |
<table align="center" cellpadding="0" cellspacing="0" border="0" width="95%"> |
222 |
<tr bgcolor="#00cccc"> |
<tr bgcolor="#00cccc"> |
223 |
<td height="0"> <b>"Nickname"</b> </td> |
<td height="0"> <b>Nickname</b> </td> |
224 |
<td> <b>OPTFILE Name</b> </td> |
<td> <b>OPTFILE Name</b> </td> |
225 |
<td> <b>Date (YYYYMMDD)</b> </td> |
<td> <b>Type</b> </td> |
226 |
|
<td> <b>Date</b> </td> |
227 |
|
<td> <b>Summary</b> </td> |
228 |
</tr> |
</tr> |
229 |
|
|
230 |
EOF |
EOF |
232 |
color="#bbffdd" |
color="#bbffdd" |
233 |
res_url="http://mitgcm.org/testing/" |
res_url="http://mitgcm.org/testing/" |
234 |
|
|
235 |
MACHINES="faulks shelley myrinet halem hopper lomax orion bf bs" |
MACHINES="faulks shelley myrinet eaps halem hopper lomax orion bf bs" |
236 |
|
|
237 |
( cd $INDIR ; ls -1 ) > ./dir_all |
( cd $INDIR ; ls -1 ) > ./dir_all |
238 |
|
|
258 |
OPTFILE=${OPTFILE##*/} |
OPTFILE=${OPTFILE##*/} |
259 |
fi |
fi |
260 |
if test "x$OPTFILE" = x -a -r "$dir/genmake_state" ; then |
if test "x$OPTFILE" = x -a -r "$dir/genmake_state" ; then |
261 |
comm=`grep 'OPTFILE=' $dir/genmake_state` |
comm=`grep 'OPTFILE=' $dir/genmake_state 2>/dev/null` |
262 |
eval $comm |
eval $comm |
263 |
OPTFILE=${OPTFILE##*/} |
OPTFILE=${OPTFILE##*/} |
264 |
fi |
fi |
265 |
if test "x$OPTFILE" = x ; then |
if test "x$OPTFILE" = x ; then |
266 |
comm=`grep '^# OPTFILE=' $dir/*/Makefile 2>/dev/null | head -1 | sed -e 's|^# ||'` |
comm=`grep '^# OPTFILE=' $dir/*/Makefile 2>/dev/null | head -1` |
267 |
|
comm=${comm##*#} |
268 |
eval $comm |
eval $comm |
269 |
OPTFILE=${OPTFILE##*/} |
OPTFILE=${OPTFILE##*/} |
270 |
fi |
fi |
271 |
if test "x$OPTFILE" = x ; then |
if test "x$OPTFILE" = x ; then |
272 |
OPTFILE="not_explicitly_specified" |
OPTFILE="not_explicitly_specified" |
273 |
fi |
fi |
274 |
|
|
275 |
|
ADJOINT= |
276 |
|
if test -r $dir/summary.txt ; then |
277 |
|
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
278 |
|
eval $comm |
279 |
|
fi |
280 |
|
if test "x$ADJOINT" = x ; then |
281 |
|
kind="forward" |
282 |
|
else |
283 |
|
test "x$ADJOINT" = xtrue && kind="adjoint" |
284 |
|
fi |
285 |
|
|
286 |
tokens=`echo $i | sed -e 's|_| |g'` |
tokens=`echo $i | sed -e 's|_| |g'` |
287 |
echo "" > ./ms_tmp |
echo "" > ./ms_tmp |
288 |
for tok in $tokens ; do |
for tok in $tokens ; do |
290 |
done |
done |
291 |
DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,3)=="200")'` |
DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,3)=="200")'` |
292 |
rm -f ./ms_tmp |
rm -f ./ms_tmp |
293 |
echo "$OPTFILE $DAY $i" >> ./mlist |
|
294 |
|
echo "$OPTFILE$kind $DAY $OPTFILE $kind $i" >> ./mlist |
295 |
|
|
296 |
done |
done |
297 |
|
|
301 |
# Do we have any data? If so, create the latest pointer. |
# Do we have any data? If so, create the latest pointer. |
302 |
num=`wc -l ./mlist | awk '{print $1}'` |
num=`wc -l ./mlist | awk '{print $1}'` |
303 |
if test $num -gt 0 ; then |
if test $num -gt 0 ; then |
304 |
optfiles=`cat ./mlist | cut -d " " -f 1 | sort | uniq` |
keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq` |
305 |
|
|
306 |
for optf in $optfiles ; do |
for key in $keys ; do |
307 |
ldir=`grep "^$optf " ./mlist | sort -r | head -1 | cut -d " " -f 3` |
tline=`grep "^$key " ./mlist | sort -r | head -1` |
308 |
|
ldir=`echo $tline | cut -d " " -f 5` |
309 |
|
kind=`echo $tline | cut -d " " -f 4` |
310 |
|
optf=`echo $tline | cut -d " " -f 3` |
311 |
|
DAY=`echo $tline | cut -d " " -f 2` |
312 |
URL="results/$PERIOD/$ldir" |
URL="results/$PERIOD/$ldir" |
313 |
cat <<EOF >>$LATEST |
cat <<EOF >>$LATEST |
314 |
<tr bgcolor="$color"> |
<tr bgcolor="$color"> |
315 |
<td height="0"><a href="$res_url$URL"> $mname </a></td> |
<td height="0"> $mname </td> |
316 |
<td> $optf </td> |
<td> $optf </td> |
317 |
<td> $DAY </td> |
<td> $kind </td> |
318 |
|
<td> <a href="$res_url$URL">$DAY</a> </td> |
319 |
|
<td> <a href="$res_url$URL/summary.txt"> summary.txt </a> </td> |
320 |
</tr> |
</tr> |
321 |
EOF |
EOF |
322 |
done |
done |
325 |
done |
done |
326 |
|
|
327 |
cat >> $LATEST << EOF |
cat >> $LATEST << EOF |
328 |
|
<tr bgcolor="#00cccc"> |
329 |
|
<td height="0" colspan="5" align="center" > |
330 |
|
=== This table generated on: $the_date === |
331 |
|
</td> |
332 |
|
</tr> |
333 |
|
|
334 |
</table> |
</table> |
335 |
</body> |
</body> |