From 88037b456eb3e253a6d9258f1e14fe93c767b3b8 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 20 Apr 2006 19:54:41 +0000 Subject: [PATCH] We have nice macros for checking ... This commit was SVN r9670. --- ompi/communicator/communicator.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ompi/communicator/communicator.h b/ompi/communicator/communicator.h index 97c7b35a55..35207ed875 100644 --- a/ompi/communicator/communicator.h +++ b/ompi/communicator/communicator.h @@ -2,7 +2,7 @@ * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. - * Copyright (c) 2004-2005 The University of Tennessee and The University + * Copyright (c) 2004-2006 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, @@ -169,8 +169,7 @@ struct ompi_communicator_t { static inline int ompi_comm_invalid(ompi_communicator_t* comm) { if ((NULL == comm) || (MPI_COMM_NULL == comm) || - (comm->c_flags & OMPI_COMM_ISFREED ) || - (OMPI_COMM_IS_INVALID(comm)) ) + (OMPI_COMM_IS_FREED(comm)) || (OMPI_COMM_IS_INVALID(comm)) ) return true; else return false;