2004-01-25 01:51:49 +00:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
|
|
|
#include "mpi/interface/c/bindings.h"
|
2004-02-13 16:41:53 +00:00
|
|
|
#include "mpi/group/group.h"
|
2004-01-25 01:51:49 +00:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Group_size = PMPI_Group_size
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int MPI_Group_size(MPI_Group group, int *size) {
|
2004-03-15 22:14:08 +00:00
|
|
|
|
|
|
|
/* error checking */
|
|
|
|
if( MPI_PARAM_CHECK ) {
|
|
|
|
if( MPI_GROUP_NULL == group ) {
|
|
|
|
return MPI_ERR_GROUP;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-13 16:41:53 +00:00
|
|
|
*size=lam_group_size((lam_group_t *)group);
|
2004-01-25 01:51:49 +00:00
|
|
|
return MPI_SUCCESS;
|
|
|
|
}
|