00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00020
00021
00022 #ifndef DUMMYMPI_H_
00023 #define DUMMYMPI_H_
00024
00025 #ifdef COMP_GNUOLD
00026
00027 #else
00028 using std::cout;
00029 using std::endl;
00030 #endif
00031
00032
00033 #define MPI_MAX_PROCESSOR_NAME 6
00034 inline int MPI_Get_processor_name(char s[MPI_MAX_PROCESSOR_NAME], int* i) {
00035 return 0;
00036 }
00037
00038 #define MPI_Comm int
00039 #define MPI_COMM_WORLD 0
00040 #define MPI_Request int
00041 #define MPI_Status int
00042
00043 #define MPI_INT 0
00044 #define MPI_DOUBLE 0
00045 #define MPI_LOR 0
00046 #define MPI_SUM 0
00047 #define MPI_MIN 0
00048 #define MPI_MAX 0
00049
00050 inline void Error_Dummy_mpi() {
00051 cout << " Error_Dummy_mpi! " << endl;
00052 }
00053
00054 inline void MPI_Comm_rank(int, int* my_rank) { *my_rank = 0; };
00055 inline void MPI_Comm_size(int, int* p) { *p = 1; };
00056
00057 inline void MPI_Irecv(int*,int,int,int,int,int,int*) {};
00058 inline void MPI_Isend(int*,int,int,int,int,int,int*) {};
00059 inline void MPI_Irecv(double*,int,int,int,int,int,int*) {};
00060 inline void MPI_Isend(double*,int,int,int,int,int,int*) {};
00061
00062 inline void MPI_Recv(int*,int,int,int,int,int) {};
00063 inline void MPI_Send(int*,int,int,int,int,int) {};
00064 inline void MPI_Recv(double*,int,int,int,int,int) {};
00065 inline void MPI_Send(double*,int,int,int,int,int) {};
00066
00067 inline void MPI_Recv(int*,int,int,int,int,int,int*) {};
00068 inline void MPI_Send(int*,int,int,int,int,int,int*) {};
00069 inline void MPI_Recv(double*,int,int,int,int,int,int*) {};
00070 inline void MPI_Send(double*,int,int,int,int,int,int*) {};
00071
00072 inline void MPI_Waitall(int,int*,int*) {};
00073 inline void MPI_Barrier(int) {};
00074 inline void MPI_Gather(int*,int,int,int*,int,int,int,int) {};
00075
00076 inline void MPI_Init(int*,char***) {};
00077
00078 inline double MPI_Wtime() {
00079 return clock() / CLOCKS_PER_SEC;
00080 }
00081
00082 inline void MPI_Allreduce(int* input,int* output,int,int,int,int) {
00083 *output = *input;
00084 };
00085 inline void MPI_Allreduce(double* input,double* output,int,int,int,int) {
00086 *output = *input;
00087 };
00088
00089 inline void MPI_Finalize() {
00090 cout << " This is the serial version of EXPDE! " << endl;
00091 };
00092
00093
00094 #endif
00095
00096