[Gridflow-cvs] [svn] commit: r6268 - /trunk/src/classes3.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Sep 14 18:11:22 EDT 2010


Author: matju
Date: Tue Sep 14 18:11:22 2010
New Revision: 6268

Log:
fix error messages

Modified:
    trunk/src/classes3.cxx

Modified: trunk/src/classes3.cxx
==============================================================================
--- trunk/src/classes3.cxx (original)
+++ trunk/src/classes3.cxx Tue Sep 14 18:11:22 2010
@@ -144,7 +144,7 @@
 	if (d.n != r->dim.n) RAISE("wrong number of dimensions");
 	int w = which_dim;
 	if (w<0) w+=d.n;
-	if (w<0 || w>=d.n) RAISE("can't join on dim number %d on %d-dimensional grids", which_dim,d.n);
+	if (w<0 || w>=d.n) RAISE("dim number %d does not exist %d-dimensional grids", which_dim,d.n);
 	int32 v[d.n];
 	for (int i=0; i<d.n; i++) {
 		v[i] = d[i];
@@ -1369,7 +1369,7 @@
 GRID_INLET(0) {
 	if (in.dim.n<2) RAISE("at least 2 dimensions");
 	int w = which_dim; if (w<0) w+=in.dim.n;
-	if (w<0 || w>=in.dim.n) RAISE("can't join on dim number %d on %d-dimensional grids", which_dim,in.dim.n);
+	if (w<0 || w>=in.dim.n) RAISE("dim number %d does not exist on %d-dimensional grids", which_dim,in.dim.n);
 	if (!r) {t_atom2 a[1] = {256.f}; r=new Grid(1,(t_atom *)a);}
 	SAME_TYPE(in,r);
 	go = new GridOut(this,0,in.dim,in.nt);



More information about the Gridflow-cvs mailing list