/[MITgcm]/mitgcm.org/front_content/make_summary
ViewVC logotype

Diff of /mitgcm.org/front_content/make_summary

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

--- mitgcm.org/front_content/make_summary	2007/09/17 16:01:33	1.31
+++ mitgcm.org/front_content/make_summary	2007/12/25 17:38:26	1.32
@@ -1,6 +1,6 @@
 #! /usr/bin/env bash
 
-# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.31 2007/09/17 16:01:33 jmc Exp $
+# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.32 2007/12/25 17:38:26 jmc Exp $
 #
 #  The purpose of this script is to create HTML summaries of the
 #  directories produced by the "parse_emails" script.
@@ -229,14 +229,17 @@
 	fi
 
 	ADJOINT=
+	RESTART=0
 	if test -r $dir/summary.txt ; then
 	    comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
 	    eval $comm
+	    RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
 	fi
-	if test "x$ADJOINT" = x ; then
+	if test "x$RESTART" = x0 ; then
 	    kind="forward"
-	else
 	    test "x$ADJOINT" = xtrue  &&  kind="adjoint"
+	else
+	    kind="restart"
 	fi
 
 	t_pass="--"

 

  ViewVC Help
Powered by ViewVC 1.1.22