From d187338156f2c07257e754f0bf3f1b8997c9b67b Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 15 Jul 2008 13:59:58 -0500 Subject: CarpetLib: Count number of received bytes correctly in comm_state --- Carpet/CarpetLib/src/commstate.cc | 3 ++- Carpet/CarpetLib/src/commstate.hh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetLib/src') 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 #include #include +#include #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++; } } diff --git a/Carpet/CarpetLib/src/commstate.hh b/Carpet/CarpetLib/src/commstate.hh index 8cc8d40b4..c01f732da 100644 --- a/Carpet/CarpetLib/src/commstate.hh +++ b/Carpet/CarpetLib/src/commstate.hh @@ -1,6 +1,7 @@ #ifndef COMMSTATE_HH #define COMMSTATE_HH +#include #include #include -- cgit v1.2.3