2004-01-25 04:51:49 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
|
|
|
#include "group/group.h"
|
2004-03-23 00:42:12 +03:00
|
|
|
#include "errhandler/errhandler.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-01-25 04:51:49 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Group_c2f = PMPI_Group_c2f
|
|
|
|
#endif
|
|
|
|
|
|
|
|
MPI_Fint MPI_Group_c2f(MPI_Group group) {
|
2004-03-15 05:25:49 +03:00
|
|
|
|
|
|
|
/* local variables */
|
|
|
|
lam_group_t *group_c;
|
|
|
|
|
|
|
|
/* error checking */
|
|
|
|
if( MPI_PARAM_CHECK ) {
|
|
|
|
/* check for MPI_GROUP_NULL */
|
2004-03-23 00:42:12 +03:00
|
|
|
if( (NULL == group) ) {
|
|
|
|
return (MPI_Fint)
|
|
|
|
LAM_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_GROUP,
|
|
|
|
"MPI_Group_c2f");
|
2004-03-15 05:25:49 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group_c=(lam_group_t *)group;
|
|
|
|
|
|
|
|
return (MPI_Fint) (group_c->grp_f_to_c_index) ;
|
2004-01-25 04:51:49 +03:00
|
|
|
}
|