usempi.h

Go to the documentation of this file.
00001 /* 
00002 usempi.h
00003 Igor Terentyev.
00004 ********************************************************************************
00005 Flag for iwave to use MPI.
00006 */
00007 /*============================================================================*/
00008 
00009 #ifndef __USEMPI_H_
00010 #define __USEMPI_H_
00011 /*----------------------------------------------------------------------------*/
00012 
00013 /*#define IWAVE_USE_MPI*/
00014 /*#undef IWAVE_USE_MPI*/
00015 /*----------------------------------------------------------------------------*/
00016 #define MPICH_SKIP_MPICXX
00017 #ifdef IWAVE_USE_MPI
00018     #include "mpi.h"
00019     
00020 #else
00021 /*---------------*/
00022     #define MPI_Comm int
00023     #define MPI_PROC_NULL -1
00024     #define MPI_Datatype int
00025     #define MPI_DATATYPE_NULL 0
00026     
00027 /*  static inline int MPI_Type_free(MPI_Datatype *t) { *t = MPI_DATATYPE_NULL; return 0; } */
00028 #endif
00029 /*----------------------------------------------------------------------------*/
00030 
00031 #endif /*__USEMPI_H_*/

Generated on 5 Jan 2017 for IWAVEBASE by  doxygen 1.4.7