Commit 4ca5aaf7 authored by Andrew Bauer's avatar Andrew Bauer

reduced communication for timer log output

parent 0eb08850
......@@ -286,13 +286,18 @@ void PrintLog(std::ostream& stream, MPI_Comm world)
std::ostringstream tmp;
std::ostream &output = (rank == 0)? stream : tmp;
output << "\n"
<< "=================================================================\n"
<< " Time/Memory log (rank: " << rank << ") \n"
<< " -------------------------------------------------------------\n";
if(rank == 0)
{
output << "\n"
<< "=================================================================\n"
<< " Time/Memory log (rank: 0) \n"
<< " -------------------------------------------------------------\n";
}
impl::PrintLog(output, impl::Indent());
output
<< "=================================================================\n";
if(rank == 0)
{
output << "=================================================================\n";
}
if (nprocs == 1)
{
......@@ -316,7 +321,12 @@ void PrintLog(std::ostream& stream, MPI_Comm world)
for (int cc=1; cc < nprocs; cc++)
{
output << "\n"
<< "=================================================================\n"
<< " Time/Memory log (rank: " << cc << ") \n"
<< " -------------------------------------------------------------\n";
output << (recv_buffer + recv_offsets[cc]);
output << "=================================================================\n";
}
delete []recv_buffer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment