Changeset 4366
- Timestamp:
- Jun 22, 2005, 5:19:29 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 5 edited
-
src/dataIO/psLookupTable.c (modified) (3 diffs)
-
src/dataIO/psLookupTable.h (modified) (3 diffs)
-
src/types/psLookupTable.c (modified) (3 diffs)
-
src/types/psLookupTable.h (modified) (3 diffs)
-
test/dataIO/tst_psLookupTable_01.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataIO/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/dataIO/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 -
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 -
trunk/psLib/test/dataIO/tst_psLookupTable_01.c
r4054 r4366 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 5-31 21:52:49 $14 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-23 03:19:29 $ 16 16 * 17 17 * Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii … … 621 621 { 622 622 psLookupTable* table1 = NULL; 623 psS32numRows = 0;623 long numRows = 0; 624 624 625 625 // Attempt to read table with NULL input table specified
Note:
See TracChangeset
for help on using the changeset viewer.
