Index: trunk/psLib/src/dataManip/psMatrixVectorArithmetic.c
===================================================================
--- trunk/psLib/src/dataManip/psMatrixVectorArithmetic.c	(revision 1139)
+++ trunk/psLib/src/dataManip/psMatrixVectorArithmetic.c	(revision 1149)
@@ -29,6 +29,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-30 01:31:15 $
+ *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-30 20:06:41 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -88,8 +88,6 @@
     complex double out = 0+0i;
     out = a/b;
-    if(isnan(creal(out))) {
-        psError(__func__, ": NAN encountered in real portion of division");
-    } else if(isnan(cimag(out))) {
-        psError(__func__, ": NAN encountered in imaginary portion of division");
+    if(isnan(creal(out)) || isnan(cimag(out))) {
+        psError(__func__, ": Divide by zero");
     }
 
@@ -387,5 +385,5 @@
     }                                                                                                        \
 } else {                                                                                                     \
-    psError(__func__, ": Invalid binary operator: %s", #OP);                                                 \
+    psError(__func__, ": Invalid operation: %s", OP);                                                        \
 }
 
@@ -695,5 +693,5 @@
     }                                                                                                        \
 } else {                                                                                                     \
-    psError(__func__, ": Line %d - Invalid operator: %s", __LINE__, #OP);                                    \
+    psError(__func__, ": Invalid operation: %s", OP);                                                        \
 }
 
@@ -735,4 +733,10 @@
     }
 
+    if(dimIn!=dimOut) {
+        psError(__func__, ": Line %d - Dimensionality for arguments inconsistent: (%d, %d)", __LINE__,
+                dimIn, dimOut);
+        return out;
+    }
+
     if(dimIn==PS_DIMEN_OTHER || dimOut==PS_DIMEN_OTHER) {
         psError(__func__, ": Line %d - PS_DIMEN_OTHER not allowed for arguments: (%d, %d)", __LINE__,
