Changeset 4366 for trunk/psLib/src/types
- Timestamp:
- Jun 22, 2005, 5:19:29 PM (21 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 2 edited
-
psLookupTable.c (modified) (3 diffs)
-
psLookupTable.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psLookupTable.c
r4321 r4366 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-2 0 22:42:29 $9 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-23 03:19:29 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 548 548 } 549 549 550 psLookupTable *psLookupTableImport(psLookupTable *table, const psArray *vectors, intindexCol)550 psLookupTable *psLookupTableImport(psLookupTable *table, const psArray *vectors, long indexCol) 551 551 { 552 552 psLookupTable* outputTable = NULL; … … 564 564 if(indexCol < 0 ) { 565 565 psError(PS_ERR_BAD_PARAMETER_VALUE,true,"Index column cannot be less than zero"); 566 return NULL; 567 } 568 569 if (indexCol >= vectors->n) { 570 psError(PS_ERR_BAD_PARAMETER_VALUE,true,"Index column, %d, is larger than number of columns, %d.", 571 indexCol, vectors->n); 566 572 return NULL; 567 573 } -
trunk/psLib/src/types/psLookupTable.h
r4321 r4366 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-2 0 22:42:29 $9 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-23 03:19:29 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 const char *filename; ///< Name of file with table 31 31 const char *format; ///< scanf-like format string for file 32 unsigned int indexCol;///< Column of the index vector (starting at zero)32 long indexCol; ///< Column of the index vector (starting at zero) 33 33 psVector *index; ///< Vector of independent index values 34 34 psArray *values; ///< Array of dependent table values corresponding to index values … … 91 91 */ 92 92 psLookupTable *psLookupTableImport( 93 psLookupTable *table, ///< Lookup table into which to import94 const psArray *vectors, ///< Array of vectors95 int indexCol///< Index of the index vector in the array of vectors93 psLookupTable *table, ///< Lookup table into which to import 94 const psArray *vectors, ///< Array of vectors 95 long indexCol ///< Index of the index vector in the array of vectors 96 96 ); 97 97
Note:
See TracChangeset
for help on using the changeset viewer.
