[Gridflow-cvs] [svn] commit: r6551 - /trunk/src/classes1.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sat Feb 5 16:39:30 EST 2011


Author: matju
Date: Sat Feb  5 16:39:29 2011
New Revision: 6551

Log:
[#]: don't ask for N elements in right inlet for a one-input operator

Modified:
    trunk/src/classes1.cxx

Modified: trunk/src/classes1.cxx
==============================================================================
--- trunk/src/classes1.cxx (original)
+++ trunk/src/classes1.cxx Sat Feb  5 16:39:29 2011
@@ -545,7 +545,7 @@
 GRID_INLET(0) {
 	snap_backstore(r);
 	if (op->arity()==2) SAME_TYPE(in,r);
-	if (op->size>1 && (in.dim[in.dim.n-1]!=op->size || r->dim[r->dim.n-1]!=op->size))
+	if (op->size>1 && (in.dim[in.dim.n-1]!=op->size || (op->arity()==2 && r->dim[r->dim.n-1]!=op->size)))
 		RAISE("using %s requires Dim(...,%d) in both inlets but got: left=%s right=%s",
 			op->name,op->size,in.dim.to_s(),r->dim.to_s());
 	go=new GridOut(this,0,in.dim,in.nt);



More information about the Gridflow-cvs mailing list