[Gridflow-cvs] [svn] commit: r4111 - /trunk/base/flow_objects.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Nov 9 17:07:26 EST 2008


Author: matju
Date: Sun Nov  9 17:07:26 2008
New Revision: 4111

Log:
fix bug with [#outer] on null grids

Modified:
    trunk/base/flow_objects.c

Modified: trunk/base/flow_objects.c
==============================================================================
--- trunk/base/flow_objects.c (original)
+++ trunk/base/flow_objects.c Sun Nov  9 17:07:26 2008
@@ -844,6 +844,7 @@
 	out=new GridOutlet(this,0,new Dim(n,v),in->nt);
 } GRID_FLOW {
 	long b_prod = r->dim->prod();
+	if (!b_prod) return; /* nothing to do... and avoid deadly divisions by zero */
 	if (b_prod > 4) {
 		T buf[b_prod];
 		while (n) {



More information about the Gridflow-cvs mailing list