1 | !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
2 | ! NASA/GSFC, Data Assimilation Office, Code 910.3, GEOS/DAS ! |
---|
3 | !----------------------------------------------------------------------- |
---|
4 | ! CVS m_mpif.F90,v 1.2 2004-04-21 22:54:48 jacob Exp |
---|
5 | ! CVS MCT_2_8_0 |
---|
6 | !----------------------------------------------------------------------- |
---|
7 | !BOP |
---|
8 | ! |
---|
9 | ! !MODULE: m_mpif - a portable interface to the MPI "mpif.h" COMMONs. |
---|
10 | ! |
---|
11 | ! !DESCRIPTION: |
---|
12 | ! |
---|
13 | ! The purpose of \verb"m_mpif" module is to provide a portable |
---|
14 | ! interface of \verb"mpif.h" with different MPI implementation. |
---|
15 | ! By combining module \verb"m_mpif" and \verb"m_mpif90", it may be |
---|
16 | ! possible to build a Fortran 90 MPI binding module graduately. |
---|
17 | ! |
---|
18 | ! Although it is possible to use \verb'include "mpif.h"' directly |
---|
19 | ! in individual modules, it has several problems: |
---|
20 | ! \begin{itemize} |
---|
21 | ! \item It may conflict with either the source code of a {\sl fixed} |
---|
22 | ! format or the code of a {\sl free} format; |
---|
23 | ! \item It does not provide the protection and the safety of using |
---|
24 | ! these variables as what a \verb"MODULE" would provide. |
---|
25 | ! \end{itemize} |
---|
26 | ! |
---|
27 | ! More information may be found in the module \verb"m_mpif90". |
---|
28 | ! |
---|
29 | ! !INTERFACE: |
---|
30 | |
---|
31 | module m_mpif |
---|
32 | implicit none |
---|
33 | private ! except |
---|
34 | |
---|
35 | public :: MPI_INTEGER |
---|
36 | public :: MPI_REAL |
---|
37 | public :: MPI_DOUBLE_PRECISION |
---|
38 | public :: MPI_LOGICAL |
---|
39 | public :: MPI_CHARACTER |
---|
40 | |
---|
41 | public :: MPI_REAL4 |
---|
42 | public :: MPI_REAL8 |
---|
43 | |
---|
44 | public :: MPI_COMM_WORLD |
---|
45 | public :: MPI_COMM_NULL |
---|
46 | |
---|
47 | public :: MPI_SUM |
---|
48 | public :: MPI_PROD |
---|
49 | public :: MPI_MIN |
---|
50 | public :: MPI_MAX |
---|
51 | |
---|
52 | public :: MPI_MAX_ERROR_STRING |
---|
53 | public :: MPI_STATUS_SIZE |
---|
54 | public :: MPI_ANY_SOURCE |
---|
55 | |
---|
56 | #ifdef MPICH_ |
---|
57 | public :: MPIPRIV ! the common block name |
---|
58 | #endif |
---|
59 | |
---|
60 | include "mpif.h" |
---|
61 | |
---|
62 | ! !REVISION HISTORY: |
---|
63 | ! 01Apr98 - Jing Guo <guo@thunder> - initial prototype/prolog/code |
---|
64 | !EOP |
---|
65 | !_______________________________________________________________________ |
---|
66 | character(len=*),parameter :: myname='MCT(MPEU)::m_mpif' |
---|
67 | |
---|
68 | end module m_mpif |
---|
69 | !. |
---|