This source file includes following definitions.
- OMPI_Progress_f
- OMPI_PROGRESS
- ompi_progress
- ompi_progress_
- ompi_progress__
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #include "ompi_config.h"
18
19 #include <stdio.h>
20
21 #include "ompi/mpi/fortran/mpif-h/bindings.h"
22 #include "ompi/mpi/fortran/base/constants.h"
23
24 #include "ompi/mpiext/example/c/mpiext_example_c.h"
25
26
27
28
29
30
31
32
33
34 OMPI_DECLSPEC void OMPI_Progress_f(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr);
35 OMPI_DECLSPEC void OMPI_PROGRESS(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr);
36 OMPI_DECLSPEC void ompi_progress(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr);
37 OMPI_DECLSPEC void ompi_progress_(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr);
38 OMPI_DECLSPEC void ompi_progress__(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr);
39
40
41 void OMPI_Progress_f(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr)
42 {
43 int c_err;
44 MPI_Comm c_comm = MPI_Comm_f2c(*comm);
45
46 c_err = OMPI_Progress(OMPI_FINT_2_INT(*count), c_comm);
47
48 if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_err);
49 }
50
51
52 void OMPI_PROGRESS(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr) {
53 OMPI_Progress_f(count, comm, ierr);
54 }
55
56 void ompi_progress(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr) {
57 OMPI_Progress_f(count, comm, ierr);
58 }
59
60 void ompi_progress_(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr) {
61 OMPI_Progress_f(count, comm, ierr);
62 }
63
64 void ompi_progress__(MPI_Fint *count, MPI_Fint *comm, MPI_Fint *ierr) {
65 OMPI_Progress_f(count, comm, ierr);
66 }
67