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();