mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-18 03:17:04 +00:00
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
/*****************************************************************************
|
|
* CVS File Information :
|
|
* $RCSfile$
|
|
* Author: patmiller $
|
|
* Date: 2007/06/11 14:12:51 $
|
|
* Revision: 1.2 $
|
|
****************************************************************************/
|
|
/****************************************************************************/
|
|
/* FILE ****************** PMPI_Barrier.c ************************/
|
|
/****************************************************************************/
|
|
/* Author : Lisa Alano July 18 2002 */
|
|
/* Copyright (c) 2002 University of California Regents */
|
|
/****************************************************************************/
|
|
|
|
#include "mpi.h"
|
|
|
|
int PMPI_Barrier ( MPI_Comm comm)
|
|
{
|
|
int retval;
|
|
_MPI_COVERAGE();
|
|
retval = _MPI_checkCommunicator (comm);
|
|
if (retval != MPI_SUCCESS)
|
|
{
|
|
_MPI_COVERAGE();
|
|
_MPI_ERR_ROUTINE (retval, "MPI_Barrier: Invalid communicator.");
|
|
MPI_Abort (comm, retval);
|
|
}
|
|
return retval;
|
|
}
|
|
|