Skip to content

Commit cd248fb

Browse files
committed
Call barrier() iff we're *not* stack unwinding
I was feeling proud that my lengthy comment clearly explained what the code here is intended to do; it would be even better if the code itself also matched what the code is intended to do.
1 parent 1f3cf47 commit cd248fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/base/libmesh.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ LibMeshInit::~LibMeshInit()
841841
// *that* is the case then we can't safely communicate with other
842842
// processors that might not all be unwinding too.
843843
#ifdef LIBMESH_ENABLE_EXCEPTIONS
844-
if (std::uncaught_exceptions())
844+
if (!std::uncaught_exceptions())
845845
#endif
846846
this->comm().barrier();
847847

0 commit comments

Comments
 (0)