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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Oct 17 12:22:50 EDT 2008


Author: matju
Date: Fri Oct 17 12:22:49 2008
New Revision: 4102

Log:
snap backstore in put_at.

for example, sending this to right inlet: reassign, 6 6 6 #, put_at 3 4 5, 42

didn't work, and now it does.

Modified:
    trunk/base/flow_objects.c

Modified: trunk/base/flow_objects.c
==============================================================================
--- trunk/base/flow_objects.c (original)
+++ trunk/base/flow_objects.c Fri Oct 17 12:22:49 2008
@@ -493,8 +493,9 @@
 		else           r      = new Grid(in->dim,nt);
 		return;
 	}
+	// put_at ( ... )
+	snap_backstore(r);
 	SAME_TYPE(in,r);
-	// put_at ( ... )
 	//!@#$ should check types. if (r->nt!=in->nt) RAISE("shoo");
 	long nn=r->dim->n, na=put_at->dim->v[0], nb=in->dim->n;
 	int32 sizeb[nn];
@@ -514,8 +515,9 @@
 			fromb[lsd]!=0 || sizeb[lsd]!=r->dim->v[lsd]) break;
 	}
 	lsd++;
-	in->set_chunk(     lsd-nn+in->dim->n);
-	cs = in->dim->prod(lsd-nn+in->dim->n);
+	long chunk = lsd-nn+in->dim->n;
+	in->set_chunk(     chunk);
+	cs = in->dim->prod(chunk);
 } GRID_FLOW {
 	//fprintf(stderr,"d=%d\n",d);
 	if (!put_at) { // reassign



More information about the Gridflow-cvs mailing list