Author: bart
Date: 2008-03-09 20:04:31 +0000 (Sun, 09 Mar 2008)
New Revision: 7622
Log:
More cleanup.
Modified:
trunk/exp-drd/tests/matinv_openmp.c
Modified: trunk/exp-drd/tests/matinv_openmp.c
===================================================================
--- trunk/exp-drd/tests/matinv_openmp.c 2008-03-09 19:21:14 UTC (rev 7621)
+++ trunk/exp-drd/tests/matinv_openmp.c 2008-03-09 20:04:31 UTC (rev 7622)
@@ -25,13 +25,6 @@
typedef double elem_t;
-/********************/
-/* Local variables. */
-/********************/
-
-static int s_nthread;
-
-
/*************************/
/* Function definitions. */
/*************************/
@@ -264,8 +257,7 @@
double ratio;
matrix_size = (argc > 1) ? atoi(argv[1]) : 3;
- s_nthread = (argc > 2) ? atoi(argv[2]) : 3;
- silent = (argc > 3) ? atoi(argv[3]) : 0;
+ silent = (argc > 2) ? atoi(argv[2]) : 0;
eps = epsilon();
a = new_matrix(matrix_size, matrix_size);
@@ -280,7 +272,7 @@
printf("error = %g; epsilon = %g; error / (epsilon * n) = %g\n",
error, eps, ratio);
}
- if (ratio < 100)
+ if (isfinite(ratio) && ratio < 100)
printf("Error within bounds.\n");
else
printf("Error out of bounds.\n");
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers