Skip to content
Browse files

make sure Singleton::create() works properly, temporary fix if not to…

… help debugging...
  • Loading branch information...
1 parent 08f78db commit 7fabc7a93b6528128529e907372fa13a99093242 @benkirk benkirk committed Apr 3, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/base/libmesh.C
View
8 src/base/libmesh.C
@@ -23,6 +23,7 @@
#include "libmesh/parallel.h"
#include "libmesh/reference_counter.h"
#include "libmesh/libmesh_singleton.h"
+#include "lbmesh/remote_elem.h"
#include "libmesh/threads.h"
@@ -345,6 +346,13 @@ void _init (int argc, const char* const* argv,
// Construct singletons who may be at risk of the
// "static initialization order fiasco"
Singleton::setup();
+ if (remote_elem == NULL)
+ {
+ libmesh_here();
+ libMesh::err << "WARNING: Singleton::setup() failed to properly create\n"
+ << " a remote_elem singleton!!\n";
+ RemoteElem::create();
+ }
#if defined(LIBMESH_HAVE_MPI)

0 comments on commit 7fabc7a

Please sign in to comment.
Something went wrong with that request. Please try again.