Changeset 1149
- Timestamp:
- Jun 30, 2004, 10:06:41 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMatrixVectorArithmetic.c
r1139 r1149 29 29 * @author Ross Harman, MHPCC 30 30 * 31 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $32 * @date $Date: 2004-06-30 01:31:15$31 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 32 * @date $Date: 2004-06-30 20:06:41 $ 33 33 * 34 34 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 88 88 complex double out = 0+0i; 89 89 out = a/b; 90 if(isnan(creal(out))) { 91 psError(__func__, ": NAN encountered in real portion of division"); 92 } else if(isnan(cimag(out))) { 93 psError(__func__, ": NAN encountered in imaginary portion of division"); 90 if(isnan(creal(out)) || isnan(cimag(out))) { 91 psError(__func__, ": Divide by zero"); 94 92 } 95 93 … … 387 385 } \ 388 386 } else { \ 389 psError(__func__, ": Invalid binary operator: %s", #OP);\387 psError(__func__, ": Invalid operation: %s", OP); \ 390 388 } 391 389 … … 695 693 } \ 696 694 } else { \ 697 psError(__func__, ": Line %d - Invalid operator: %s", __LINE__, #OP);\695 psError(__func__, ": Invalid operation: %s", OP); \ 698 696 } 699 697 … … 735 733 } 736 734 735 if(dimIn!=dimOut) { 736 psError(__func__, ": Line %d - Dimensionality for arguments inconsistent: (%d, %d)", __LINE__, 737 dimIn, dimOut); 738 return out; 739 } 740 737 741 if(dimIn==PS_DIMEN_OTHER || dimOut==PS_DIMEN_OTHER) { 738 742 psError(__func__, ": Line %d - PS_DIMEN_OTHER not allowed for arguments: (%d, %d)", __LINE__,
Note:
See TracChangeset
for help on using the changeset viewer.
