diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-07-15 13:59:58 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-07-15 13:59:58 -0500 |
commit | d187338156f2c07257e754f0bf3f1b8997c9b67b (patch) | |
tree | 6c91873a95a2ccc5b43455863673813fdbb37297 /Carpet/CarpetLib/src | |
parent | 5a457d73aa6272fd44a52395f6c25a468451c9ad (diff) |
CarpetLib: Count number of received bytes correctly in comm_state
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r-- | Carpet/CarpetLib/src/commstate.cc | 3 | ||||
-rw-r--r-- | Carpet/CarpetLib/src/commstate.hh | 1 |
2 files changed, 3 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++; } } 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 <cstdlib> #include <queue> #include <vector> |