Index: trunk/psLib/src/dataManip/psConstants.h
===================================================================
--- trunk/psLib/src/dataManip/psConstants.h	(revision 2221)
+++ trunk/psLib/src/dataManip/psConstants.h	(revision 2224)
@@ -6,6 +6,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-27 23:31:43 $
+ *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-28 00:22:53 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -32,5 +32,5 @@
 #define PS_INT_CHECK_NON_NEGATIVE(NAME, RVAL) \
 if (NAME < 0) { \
-    psError(__func__,"%s is less than 0.", #NAME); \
+    psError(__func__,"Error: %s is less than 0.", #NAME); \
     return(RVAL); \
 }
@@ -38,22 +38,28 @@
 #define PS_INT_CHECK_POSITIVE(NAME, RVAL) \
 if (NAME < 1) { \
-    psError(__func__,"%s is 0 or less.", #NAME); \
-    return(RVAL); \
-}
-
+    psError(__func__,"Error: %s is 0 or less.", #NAME); \
+    return(RVAL); \
+}
+
+// Produce an error if ((NAME1 > NAME2)
 #define PS_INT_COMPARE(NAME1, NAME2, RVAL) \
-if (NAME1 < NAME2) { \
-    psError(__func__,"%s is less than %s (%d < %D).", #NAME1, #NAME2, NAME1, NAME2); \
-    return(RVAL); \
-}
-
-
+if (NAME1 > NAME2) { \
+    psError(__func__,"Error: (%s > %s) (%d %d).", #NAME1, #NAME2, NAME1, NAME2); \
+    return(RVAL); \
+}
+
+
+// Produce an error if ((NAME1 > NAME2)
 #define PS_FLOAT_COMPARE(NAME1, NAME2, RVAL) \
-if ((NAME1 - NAME2) < -FLT_EPSILON) { \
-    psError(__func__,"%s is less than %s.", #NAME1, #NAME2); \
-    return(RVAL); \
-}
-
-
+if (NAME1 > NAME2) { \
+    psError(__func__,"Error: (%s > %s) (%f %f)", #NAME1, #NAME2, NAME1, NAME2); \
+    return(RVAL); \
+}
+
+#define PS_FLOAT_CHECK_NON_EQUAL(NAME1, NAME2, RVAL) \
+if (fabs(NAME2 - NAME1) < FLT_EPSILON) { \
+    psError(__func__,"Error: %s and %s are equal.", #NAME1, #NAME2); \
+    return(RVAL); \
+}
 
 /*****************************************************************************
