M3_mpi_wrappers.f90

00001 !!$ there should be no need to include mpif.h since the mpi structure definitions
00002 !!$ are default integer
00003 !!$
00004 !!$ if the mpi library implement the f90 interface AND it defines its own datatypes
00005 !!$ maybe useful to USE the mpi module and use the right KIND in the
00006 !!$ declarations of theComm and root
00007 !!$
00008 
00009 
00010 FUNCTION m3_f90_runconfig_readMPI( runconfig, runconfigfilename, runtype, theComm )
00011 
00012 !!$ If the MPI implementation support the use of f90 module:
00013 !!$    USE mpi 
00014 
00015   USE M3_typesf
00016   IMPLICIT NONE
00017   
00018   INTEGER(KIND=int4)::m3_f90_runconfig_readMPI
00019   TYPE(m3_f90_runconfig), INTENT(OUT)::runConfig
00020   CHARACTER(LEN=*), INTENT(IN)::runconfigfilename
00021   INTEGER(KIND=int4), INTENT(IN)::runtype
00022   INTEGER, INTENT(IN)::theComm
00023 
00024   m3_f90_runconfig_readMPI = m3_f77_runconfig_readMPI( runconfig, runconfigfilename, runtype, theComm )
00025 END FUNCTION m3_f90_runconfig_readMPI
00026 
00027 FUNCTION m3_f90_runconfig_readBinMPI( runconfig, runconfigfilename, runtype, theComm )
00028 
00029 !!$ If the MPI implementation support the use of f90 module:
00030 !!$    USE mpi 
00031 
00032   USE M3_typesf
00033   IMPLICIT NONE
00034 
00035   INTEGER(KIND=int4)::m3_f90_runconfig_readBinMPI
00036   TYPE(m3_f90_runconfig), INTENT(OUT)::runConfig
00037   CHARACTER(LEN=*), INTENT(IN)::runconfigfilename
00038   INTEGER(KIND=int4), INTENT(IN)::runtype
00039   INTEGER, INTENT(IN)::theComm
00040 
00041   m3_f90_runconfig_readBinMPI = m3_f77_runconfig_readBinMPI( runconfig, runconfigfilename, runtype, theComm )
00042 END FUNCTION m3_f90_runconfig_readBinMPI
00043 
00044 FUNCTION m3_f90_runconfig_Bcast( runconfig, root , theComm )
00045 
00046 !!$ If the MPI implementation support the use of f90 module:
00047 !!$    USE mpi 
00048 
00049   USE M3_typesf
00050   IMPLICIT NONE
00051   
00052   INTEGER(KIND=int4)::m3_f90_runconfig_bcast
00053   TYPE(m3_f90_runconfig), INTENT(OUT)::runConfig
00054   INTEGER, INTENT(IN)::root
00055   INTEGER, INTENT(IN)::theComm
00056 
00057   m3_f90_runconfig_Bcast = m3_f77_runconfig_Bcast( runconfig, root , theComm )
00058 END FUNCTION m3_f90_runconfig_Bcast

Generated on Mon Nov 24 10:05:12 2008 for M3 by  doxygen 1.5.3-20071008