Commit e053b414 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Added std::flush to TNL_MPI_PRINT to avoid mixed output.

parent c8e724ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 );                             \
   }                                                                                                                             \