[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:55:08 UTC 2009


The following commit has been merged in the upstream branch:
commit 65fd6219bedaffb68fe7015cf8d05931cfb5a810
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Sat Apr 5 14:10:34 2008 +1100

    Check for unclosed statement in parameter files
    
    darcs-hash:20080405031034-d4795-55412181104721932f390d9324b922cf1a59080f.gz

diff --git a/src/simulation.c b/src/simulation.c
index f70d13e..bc078e8 100644
--- a/src/simulation.c
+++ b/src/simulation.c
@@ -260,6 +260,10 @@ static void simulation_read (GtsObject ** object, GtsFile * fp)
 	gts_file_error (fp, "unknown keyword `%s'", fp->token->str);
 	return;
       }
+      if (gts_object_class_is_from_class (klass, gfs_box_class ())) {
+	gts_file_error (fp, "parse error (unclosed statement?)");
+	return;
+      }
 
       object = gts_object_new (klass);
       gfs_object_simulation_set (object, sim);

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list