aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/commstate.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-07-15 13:59:58 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-07-15 13:59:58 -0500
commitd187338156f2c07257e754f0bf3f1b8997c9b67b (patch)
tree6c91873a95a2ccc5b43455863673813fdbb37297 /Carpet/CarpetLib/src/commstate.cc
parent5a457d73aa6272fd44a52395f6c25a468451c9ad (diff)
CarpetLib: Count number of received bytes correctly in comm_state
Diffstat (limited to 'Carpet/CarpetLib/src/commstate.cc')
-rw-r--r--Carpet/CarpetLib/src/commstate.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/commstate.cc b/Carpet/CarpetLib/src/commstate.cc
index b6ed4095a..7a00157c2 100644
--- a/Carpet/CarpetLib/src/commstate.cc
+++ b/Carpet/CarpetLib/src/commstate.cc
@@ -1,6 +1,7 @@
#include <cassert>
#include <cstdlib>
#include <cstring>
+#include <iostream>
#include "cctk.h"
#include "cctk_Parameters.h"
@@ -115,7 +116,7 @@ void comm_state::step ()
if (commstate_verbose) {
CCTK_INFO ("Finished MPI_Irecv");
}
- timer.stop (0);
+ timer.stop (procbuf.recvbufsize * datatypesize);
num_posted_recvs++;
}
}