[PATCH] Fix errorneous Field/tests/NearestNeighbours.cpp test

Richard Guenther rguenth at tat.physik.uni-tuebingen.de
Thu Jan 16 14:24:03 UTC 2003


I'll apply the following patch as obvious tonight.

Richard.

--- 1.2/r2/src/Field/tests/NearestNeighbors.cpp Thu Dec 19 10:37:26 2002
+++ edited/NearestNeighbors.cpp Thu Jan 16 15:22:12 2003
@@ -94,7 +94,7 @@
 inline double
 manhattanDistance(const Vector<Dim> &difference)
 {
-  double answer;
+  double answer = 0.0;
   for (int coordinate = Dim-1; coordinate >= 0; --coordinate)
     answer += std::abs(difference(coordinate));
   return answer;

--
Richard Guenther <richard.guenther at uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/




More information about the pooma-dev mailing list