From dce73eb9f90900ba263d53a6106026c0e630a9aa Mon Sep 17 00:00:00 2001 From: Bart Janssens Date: Sun, 14 Jan 2018 14:47:30 +0100 Subject: [PATCH] [COMP] Fix invalid nullptr comparison for MPI Comm Issue #271 --- cf3/common/PE/Comm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf3/common/PE/Comm.hpp b/cf3/common/PE/Comm.hpp index a1ab17e55..69d7ca637 100644 --- a/cf3/common/PE/Comm.hpp +++ b/cf3/common/PE/Comm.hpp @@ -80,7 +80,7 @@ class Common_API Comm : public boost::noncopyable { bool is_finalized() const; /// Checks if the PE is in valid state /// should be initialized and Communicator pointer is set - bool is_active() const { return is_initialized() && !is_finalized() && is_not_null(m_comm); } + bool is_active() const { return is_initialized() && !is_finalized() && m_comm != MPI_COMM_NULL; } /// overload the barrier function void barrier();