/** * Measurement wrapper for MPI_Group_range_incl * @note Auto-generated by wrapgen from template: group_mgnt.w * @note C interface * @note Introduced with MPI 1.0 * @ingroup cg */ int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3], MPI_Group* newgroup) { const int event_gen_active = IS_EVENT_GEN_ON_FOR(CG); int return_val; if (event_gen_active) { EVENT_GEN_OFF(); esd_enter(epk_mpi_regid[EPK__MPI_GROUP_RANGE_INCL]); } return_val = PMPI_Group_range_incl(group, n, ranges, newgroup); if (*newgroup != MPI_GROUP_NULL) { epk_group_create(*newgroup); } if (event_gen_active) { esd_exit(epk_mpi_regid[EPK__MPI_GROUP_RANGE_INCL]); EVENT_GEN_ON(); } return return_val; }
void ompi_group_range_incl_f(MPI_Fint *group, MPI_Fint *n, MPI_Fint ranges[][3], MPI_Fint *newgroup, MPI_Fint *ierr) { int c_ierr; ompi_group_t *c_group, *c_newgroup; OMPI_2_DIM_ARRAY_NAME_DECL(ranges, 3); /* Make the fortran to c representation conversion */ c_group = PMPI_Group_f2c(*group); OMPI_2_DIM_ARRAY_FINT_2_INT(ranges, *n, 3); c_ierr = PMPI_Group_range_incl(c_group, OMPI_FINT_2_INT(*n), OMPI_ARRAY_NAME_CONVERT(ranges), &c_newgroup); if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr); /* translate the results from c to fortran */ if (MPI_SUCCESS == c_ierr) { *newgroup = c_newgroup->grp_f_to_c_index; } OMPI_ARRAY_FINT_2_INT_CLEANUP(ranges); }
int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3], MPI_Group * newgroup) { return PMPI_Group_range_incl(group, n, ranges, newgroup); }