From 6d596885a8a98fd050a16e3584d25f128d82cd68 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 4 Sep 2006 02:06:00 +0000 Subject: CarpetLib: Collect more timing information Extend the CarpetLib timers so that they also count the number of bytes transmitted in addition to the wall time. darcs-hash:20060904020649-dae7b-7a18c2fbe2de09d662b4154a3ae2e553ad57c12b.gz --- Carpet/CarpetLib/src/data.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Carpet/CarpetLib/src/data.cc') 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::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::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); } -- cgit v1.2.3