aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/data.cc')
-rw-r--r--Carpet/CarpetLib/src/data.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 8b12ea4cc..ae4249048 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -165,7 +165,7 @@ void data<T>::change_processor_recv (comm_state& state,
MPI_Irecv (_memory->storage(0),
_size, dist::datatype(dummy), proc(),
tag, dist::comm(), &request);
- wtime_irecv.stop();
+ wtime_irecv.stop(_size * sizeof(T));
if (use_waitall) {
state.requests.push_back (request);
}
@@ -217,7 +217,7 @@ void data<T>::change_processor_send (comm_state& state,
MPI_Isend (_memory->storage(0),
_size, dist::datatype(dummy), newproc,
tag, dist::comm(), &request);
- wtime_isend.stop();
+ wtime_isend.stop(_size * sizeof(T));
if (use_waitall) {
state.requests.push_back (request);
}