From e053b41424488bb1b2e95f0faae8f243218ebeea Mon Sep 17 00:00:00 2001 From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz> Date: Tue, 5 Feb 2019 10:00:13 +0100 Subject: [PATCH] Added std::flush to TNL_MPI_PRINT to avoid mixed output. --- src/TNL/Communicators/MpiCommunicator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TNL/Communicators/MpiCommunicator.h b/src/TNL/Communicators/MpiCommunicator.h index 52dec3b95d..198805f1b2 100644 --- a/src/TNL/Communicators/MpiCommunicator.h +++ b/src/TNL/Communicators/MpiCommunicator.h @@ -549,7 +549,7 @@ else { \ std::cerr << "Node " << __tnl_mpi_print_j << " of " \ << TNL::Communicators::MpiCommunicator::GetSize( TNL::Communicators::MpiCommunicator::AllGroup ) \ - << " : " << message << std::endl; \ + << " : " << message << std::endl << std::flush; \ } \ TNL::Communicators::MpiCommunicator::Barrier( TNL::Communicators::MpiCommunicator::AllGroup ); \ } @@ -575,7 +575,7 @@ else if( condition ) \ std::cerr << "Node " << __tnl_mpi_print_j << " of " \ << TNL::Communicators::MpiCommunicator::GetSize( TNL::Communicators::MpiCommunicator::AllGroup ) \ - << " : " << message << std::endl; \ + << " : " << message << std::endl << std::flush; \ } \ TNL::Communicators::MpiCommunicator::Barrier( TNL::Communicators::MpiCommunicator::AllGroup ); \ } \ -- GitLab