CCAFFEINE  0.8.8
MPI_wrapper.h
00001 /*
00002 // This file can be included multiple times, for those
00003 // who want to play preprocessor games.
00004 // Play too much and mpi will bite you.
00005 
00006 */
00007 
00008 struct MPI_wrapper;
00009 
00010 #ifdef MPI_wrapper_HAS_CONTENT
00011 #undef MPI_wrapper_HAS_CONTENT
00012 #endif /* MPI_wrapper_HAS_CONTENT */
00013 
00014 
00015 #ifdef _CCAMPI
00016 
00017 #include "util/noSeekMPI.h"
00018 #include <mpi.h>
00019 
00020 #define MPI_wrapper_HAS_COMM
00021 
00022 struct MPI_wrapper {
00023   MPI_Comm comm;
00024 /*
00025  // for mpich 1.1.1/2 --
00026  // MPI_Fint fcomm;
00027  // mw->fcomm = MPI_Comm_c2f(mw->comm);
00028 */
00029 };
00030 
00031 #else
00032 
00033 /* struct MPI_wrapper explicitly may contain
00034    anything, so it is not safe to pass outside
00035    your own code.
00036  */
00037 
00038 #endif /*_CCAMPI*/