Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/base/libmesh_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ extern bool warned_about_auto_ptr;
#define libmesh_assert_msg(asserted, msg) \
do { \
if (!(asserted)) { \
libmesh_error_msg(msg); \
libmesh_error_msg("Assertion `" #asserted "' failed.\n" << msg); \
} } while (0)

#define libmesh_exceptionless_assert_msg(asserted, msg) \
Expand Down
3 changes: 2 additions & 1 deletion src/base/libmesh_common.C
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ void report_error(const char * file, int line, const char * date, const char * t
}
reporting_error = true;

libMesh::MacroFunctions::here(file, line, date, time, os);

if (libMesh::global_n_processors() == 1 ||
libMesh::on_command_line("--print-trace"))
libMesh::print_trace(os);
else
libMesh::write_traceout();
libMesh::MacroFunctions::here(file, line, date, time, os);

reporting_error = false;
}
Expand Down