IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1302


Ignore:
Timestamp:
Jul 27, 2004, 1:25:19 PM (22 years ago)
Author:
evanalst
Message:

Add check for input/output vectors are same type for sorting.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psVector.c

    r1233 r1302  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-07-15 23:52:33 $
     10 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-07-27 23:25:19 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    181181    }
    182182
     183    if(inType != outVector->type.type) {
     184        psError(__func__, " : Line %d - Input and output vectors are not same type: in=%d out=%d\n", __LINE__,
     185                inType, outVector->type.type);
     186        return outVector;
     187    }
     188
    183189    if(inN == 0) {
    184190        psError(__func__, " : Line %d - No elements in use for input vector\n", __LINE__);
  • trunk/psLib/src/mathtypes/psVector.c

    r1233 r1302  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-07-15 23:52:33 $
     10 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-07-27 23:25:19 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    181181    }
    182182
     183    if(inType != outVector->type.type) {
     184        psError(__func__, " : Line %d - Input and output vectors are not same type: in=%d out=%d\n", __LINE__,
     185                inType, outVector->type.type);
     186        return outVector;
     187    }
     188
    183189    if(inN == 0) {
    184190        psError(__func__, " : Line %d - No elements in use for input vector\n", __LINE__);
Note: See TracChangeset for help on using the changeset viewer.