User: diener Date: 2011/10/21 03:19 PM
Modified: /trunk/src/ h5read.cc
Log: Convert integers before taking the square root.
File Changes:
Directory: /trunk/src/ ======================
File [modified]: h5read.cc Delta lines: +1 -1 =================================================================== --- trunk/src/h5read.cc 2011-08-25 12:38:21 UTC (rev 2) +++ trunk/src/h5read.cc 2011-10-21 20:19:22 UTC (rev 3) @@ -47,7 +47,7 @@ */ const int nn = dim[0]; const int na = dim[1]; - const int nl = static_cast<int>(round(sqrt(na+spin*spin)-abs(spin))); + const int nl = static_cast<int>(round(sqrt(double(na+spin*spin))-abs(double(spin))));
cout << "# Spin = " << spin << endl; cout << "# Rin = " << Rin << endl;
commits@lists.einsteintoolkit.org