From 8c357dca8bd5fda9ed3908dba54f6406b4f635ba Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 29 May 2015 14:11:34 +0100 Subject: [PATCH] Integer wrap problem fixed. --- benchmarks/Grid_comms.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/benchmarks/Grid_comms.cc b/benchmarks/Grid_comms.cc index 59d709a0..c218070b 100644 --- a/benchmarks/Grid_comms.cc +++ b/benchmarks/Grid_comms.cc @@ -77,7 +77,8 @@ int main (int argc, char ** argv) } double stop=usecond(); - double xbytes = Nloop*bytes*2*ncomm; + double dbytes = bytes; + double xbytes = Nloop*dbytes*2.0*ncomm; double rbytes = xbytes; double bidibytes = xbytes+rbytes; @@ -151,8 +152,9 @@ int main (int argc, char ** argv) } double stop=usecond(); - - double xbytes = Nloop*bytes*2*ncomm; + + double dbytes = bytes; + double xbytes = Nloop*dbytes*2.0*ncomm; double rbytes = xbytes; double bidibytes = xbytes+rbytes;