void mpi_win_set_errhandler_f(MPI_Fint *win, MPI_Fint *errhandler, MPI_Fint *ierr) { MPI_Win c_win = MPI_Win_f2c(*win); MPI_Errhandler c_err = MPI_Errhandler_f2c(*errhandler); *ierr = OMPI_INT_2_FINT(MPI_Win_set_errhandler(c_win, c_err)); }
void mpi_file_set_errhandler_f(MPI_Fint *fh, MPI_Fint *errhandler, MPI_Fint *ierr) { MPI_File c_fh = MPI_File_f2c(*fh); MPI_Errhandler c_err = MPI_Errhandler_f2c(*errhandler); *ierr = OMPI_INT_2_FINT(MPI_File_set_errhandler(c_fh, c_err)); }
void ompi_win_set_errhandler_f(MPI_Fint *win, MPI_Fint *errhandler, MPI_Fint *ierr) { int c_ierr; MPI_Win c_win = MPI_Win_f2c(*win); MPI_Errhandler c_err = MPI_Errhandler_f2c(*errhandler); c_ierr = MPI_Win_set_errhandler(c_win, c_err); if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr); }
FORTRAN_API void FORT_CALL mpi_file_set_errhandler_(MPI_Fint *fh, MPI_Fint *err_handler, MPI_Fint *ierr) { MPI_File fh_c; MPI_Errhandler err_handler_c; fh_c = MPI_File_f2c(*fh); err_handler_c = MPI_Errhandler_f2c(*err_handler); *ierr = MPI_File_set_errhandler(fh_c,err_handler_c); }
void mpi_errhandler_set_f(MPI_Fint *comm, MPI_Fint *errhandler, MPI_Fint *ierr) { MPI_Comm c_comm; MPI_Errhandler c_errhandler; c_comm = MPI_Comm_f2c(*comm); c_errhandler = MPI_Errhandler_f2c(*errhandler); *ierr = OMPI_INT_2_FINT(MPI_Errhandler_set(c_comm, c_errhandler)); }
MPI_Fint c2ferrhandler_ ( MPI_Fint *errh ) { MPI_Errhandler errhand = MPI_Errhandler_f2c( *errh ); if (errhand != MPI_ERRORS_RETURN) { fprintf( stderr, "Errhandler: did not get errors return\n" ); return 1; } return 0; }
void mpi_file_set_errhandler_f(MPI_Fint *fh, MPI_Fint *errhandler, MPI_Fint *ierr) { MPI_File c_fh = MPI_File_f2c(*fh); MPI_Errhandler c_err = MPI_Errhandler_f2c(*errhandler); *ierr = OMPI_INT_2_FINT(MPI_File_set_errhandler(c_fh, c_err)); if ( MPI_SUCCESS == OMPI_FINT_2_INT(*ierr) && OMPI_ERRHANDLER_TYPE_PREDEFINED != c_err->eh_mpi_object_type ) { c_err->eh_fortran_function = true ; } }
void mpi_comm_set_errhandler_f(MPI_Fint *comm, MPI_Fint *errhandler, MPI_Fint *ierr) { MPI_Comm c_comm; MPI_Errhandler c_errhandler; c_comm = MPI_Comm_f2c(*comm); c_errhandler = MPI_Errhandler_f2c(*errhandler); *ierr = OMPI_INT_2_FINT(MPI_Comm_set_errhandler(c_comm, c_errhandler)); if ( MPI_SUCCESS == OMPI_FINT_2_INT(*ierr) && OMPI_ERRHANDLER_TYPE_PREDEFINED != c_errhandler->eh_mpi_object_type ) { c_errhandler->eh_fortran_function = true ; } }
EXPORT_MPI_API void FORTRAN_API mpi_errhandler_set_( MPI_Fint *comm, MPI_Fint *errhandler, MPI_Fint *__ierr ) { MPI_Errhandler l_errhandler = MPI_Errhandler_f2c(*errhandler); *__ierr = MPI_Errhandler_set(MPI_Comm_f2c(*comm), l_errhandler ); }