Index: trunk/psLib/src/math/psConstants.h
===================================================================
--- trunk/psLib/src/math/psConstants.h	(revision 2342)
+++ trunk/psLib/src/math/psConstants.h	(revision 2438)
@@ -6,6 +6,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-11-12 19:36:07 $
+ *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-11-24 22:22:38 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -395,4 +395,13 @@
 }
 
+#define PS_IMAGE_CHECK_SIZE_(NAME1, NUM_COLS, NUM_ROWS, RVAL) \
+if ((NAME1->numCols != NUM_COLS) || \
+        (NAME1->numRows != NUM_ROWS)) { \
+    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
+            "Unallowable operation: psImages %s is not the correct size.", \
+            #NAME1); \
+    return(RVAL); \
+}
+
 
 
