Skip to content

Commit

Permalink
[COMP] Fix invalid nullptr comparison for MPI Comm
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jan 14, 2018
1 parent ed8bcaa commit dce73eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf3/common/PE/Comm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dce73eb

Please sign in to comment.