Skip to content

Commit

Permalink
print exit messages from all ranks
Browse files Browse the repository at this point in the history
  • Loading branch information
HomesGH authored Oct 11, 2024
1 parent c7f78f5 commit 3f2488e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/mardyn_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inline void mardyn_exit(const std::string & exit_message,
}

// Print code location from which MARDYN_EXIT() was called
Log::global_log->error()
Log::global_log->error_always_output()
<< "Exit called from function `" << function << "`"
<< " in file `" << filepath_truncated << ":" << line
<< "` with message:" << std::endl;
Expand All @@ -50,7 +50,7 @@ inline void mardyn_exit(const std::string & exit_message,
std::string exit_message_line;
// Split exit message by "\n" and print via Logger
while (std::getline(ss, exit_message_line, '\n')) {
Log::global_log->error() << exit_message_line << std::endl;
Log::global_log->error_always_output() << exit_message_line << std::endl;
}

#ifdef ENABLE_MPI
Expand Down

0 comments on commit 3f2488e

Please sign in to comment.