From b40d8a937585a392d68c0c4530be1c52701ea524 Mon Sep 17 00:00:00 2001
From: John Peterson <jwpeterson@gmail.com>
Date: Thu, 8 Aug 2013 15:10:09 -0600
Subject: [PATCH] Write tracefiles from libmesh_error() when running in
 parallel, but only if --enable-tracefiles is set during
 configure.

---
 include/base/libmesh_common.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/base/libmesh_common.h b/include/base/libmesh_common.h
index 438d1a9..bb8d98c 100644
--- a/include/base/libmesh_common.h
+++ b/include/base/libmesh_common.h
@@ -352,6 +352,8 @@ extern OStreamProxy err;
   do { \
     if (libMesh::n_processors() == 1) \
       libMesh::print_trace(); \
+    else \
+      libmesh_write_traceout(); \
     libmesh_here(); \
     LIBMESH_THROW(libMesh::LogicError()); \
   } while(0)
-- 
1.7.9.6 (Apple Git-31.1)

