[PATCH] Fix ABCTest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix ABCTest



Another one.

Ok?

Richard.


2004Jul20  Richard Guenther <richard.guenther@xxxxxxxxxxxxxxxx>

	* benchmarks/ABCTest/ABC.h: qualify members because of two-stage
	name-lookup.
--- pooma-bk/r2/benchmarks/ABCTest/ABC.h	Thu Jan 30 22:30:17 2003
+++ pooma-bib/r2/benchmarks/ABCTest/ABC.h	Thu Jul 15 16:47:49 2004
@@ -410,7 +410,7 @@
   {
     typedef typename Store::Engine_t Engine_t;
 
-    std::string qual = ::qualification(a_m);
+    std::string qual = ::qualification(this->a_m);
 
     if (guarded_m)
     {
@@ -436,8 +436,8 @@
     for (int iter = 0; iter < 10; ++iter)
       {
 	const double k = 1.0 / sqrt(static_cast<double>(iter+1));
-	a_m = b_m + k * c_m;
-	c_m = 0.5 * (a_m - b_m);
+	this->a_m = this->b_m + k * this->c_m;
+	this->c_m = 0.5 * (this->a_m - this->b_m);
       }
 
     Pooma::blockAndEvaluate();
@@ -451,8 +451,8 @@
   {
     // Run setup.
     
-    b_m = 0.0;
-    c_m = 1000.0;
+    this->b_m = 0.0;
+    this->c_m = 1000.0;
     Pooma::blockAndEvaluate();
   }