Changeset 3313 for trunk/psLib/test/dataManip/tst_psMatrix03.c
- Timestamp:
- Feb 23, 2005, 2:19:51 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataManip/tst_psMatrix03.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psMatrix03.c
r3264 r3313 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-02- 17 19:26:25$16 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-02-24 00:19:51 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 148 148 printFooter(stdout, "psMatrix", "Calculate LU matrix", true); 149 149 150 151 150 // Test C - Determine solution to matrix equation 152 151 printPositiveTestHeader(stdout, "psMatrix", "Determine solution to matrix equation"); … … 208 207 psVector *vectorBadOut = (psVector*)psVectorAlloc(3, PS_TYPE_F64); 209 208 psVector *permBad = (psVector*)psVectorAlloc(3, PS_TYPE_F64); 209 imageTest = (psImage*)psImageAlloc(3, 3, PS_TYPE_F64); 210 210 psMatrixLUSolve(vectorBadOut, imageTest, vectorBad, permBad); 211 211 printFooter(stdout, "psMatrix", "Attempt to use null input vector argument", true); … … 215 215 printNegativeTestHeader(stdout,"psMatrix", "Attempt to use null LU image argument", 216 216 "Invalid operation: inImage or its data is NULL.", 0); 217 vectorBadOut = (psVector*)psVectorAlloc(3, PS_TYPE_F64); 217 218 psMatrixLUSolve(vectorBadOut, NULL, vectorBad, permBad); 218 219 printFooter(stdout, "psMatrix", "Attempt to use null LU image argument", true); 219 220 221 psFree(permBad); 222 psFree(imageTest); 223 224 if( psMemCheckLeaks(0, NULL, stdout, false) ) { 225 psError(PS_ERR_UNKNOWN,true,"Memory leaks detected"); 226 return 10; 227 } 228 nBad = psMemCheckCorruption(0); 229 if(nBad) { 230 printf("ERROR: Found %d bad memory blocks\n", nBad); 231 } 232 220 233 return 0; 221 234 }
Note:
See TracChangeset
for help on using the changeset viewer.
