diff --git a/ompi/mpi/c/allreduce.c b/ompi/mpi/c/allreduce.c index 1193068119..f591bf84a8 100644 --- a/ompi/mpi/c/allreduce.c +++ b/ompi/mpi/c/allreduce.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana + * Copyright (c) 2004-2006 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 @@ -53,7 +53,7 @@ int MPI_Allreduce(void *sendbuf, void *recvbuf, int count, } else if (MPI_OP_NULL == op) { err = MPI_ERR_OP; } else if (!ompi_op_is_valid(op, datatype, &msg, FUNC_NAME)) { - int ret = OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_OP, msg); + int ret = OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_OP, msg); free(msg); return ret; } else { diff --git a/ompi/mpi/c/exscan.c b/ompi/mpi/c/exscan.c index e92c1fbb85..bde5bba714 100644 --- a/ompi/mpi/c/exscan.c +++ b/ompi/mpi/c/exscan.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana + * Copyright (c) 2004-2006 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 @@ -53,7 +53,7 @@ int MPI_Exscan(void *sendbuf, void *recvbuf, int count, else if (MPI_OP_NULL == op) { err = MPI_ERR_OP; } else if (!ompi_op_is_valid(op, datatype, &msg, FUNC_NAME)) { - int ret = OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_OP, msg); + int ret = OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_OP, msg); free(msg); return ret; } else { diff --git a/ompi/mpi/c/reduce.c b/ompi/mpi/c/reduce.c index ca7082fe44..c1307ddc6d 100644 --- a/ompi/mpi/c/reduce.c +++ b/ompi/mpi/c/reduce.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana + * Copyright (c) 2004-2006 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 @@ -52,7 +52,7 @@ int MPI_Reduce(void *sendbuf, void *recvbuf, int count, else if (MPI_OP_NULL == op) { err = MPI_ERR_OP; } else if (!ompi_op_is_valid(op, datatype, &msg, FUNC_NAME)) { - int ret = OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_OP, msg); + int ret = OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_OP, msg); free(msg); return ret; } else if ((root != ompi_comm_rank(comm) && MPI_IN_PLACE == sendbuf) || diff --git a/ompi/mpi/c/reduce_scatter.c b/ompi/mpi/c/reduce_scatter.c index 1a3799061d..ecb3eaf2ae 100644 --- a/ompi/mpi/c/reduce_scatter.c +++ b/ompi/mpi/c/reduce_scatter.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana + * Copyright (c) 2004-2006 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 @@ -53,7 +53,7 @@ int MPI_Reduce_scatter(void *sendbuf, void *recvbuf, int *recvcounts, else if (MPI_OP_NULL == op) { err = MPI_ERR_OP; } else if (!ompi_op_is_valid(op, datatype, &msg, FUNC_NAME)) { - int ret = OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_OP, msg); + int ret = OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_OP, msg); free(msg); return ret; } else if (NULL == recvcounts) { diff --git a/ompi/mpi/c/scan.c b/ompi/mpi/c/scan.c index 294e59b64e..369b4aaf6d 100644 --- a/ompi/mpi/c/scan.c +++ b/ompi/mpi/c/scan.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana + * Copyright (c) 2004-2006 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 @@ -61,7 +61,7 @@ int MPI_Scan(void *sendbuf, void *recvbuf, int count, } else if (MPI_IN_PLACE == recvbuf) { err = MPI_ERR_ARG; } else if (!ompi_op_is_valid(op, datatype, &msg, FUNC_NAME)) { - int ret = OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_OP, msg); + int ret = OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_OP, msg); free(msg); return ret; } else {