Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

src/expde/dummympi.h

Go to the documentation of this file.
00001 //    expde: expression templates for partial differential equations.
00002 //    Copyright (C) 2001  Christoph Pflaum
00003 //    This program is free software; you can redistribute it and/or modify
00004 //    it under the terms of the GNU General Public License as published by
00005 //    the Free Software Foundation; either version 2 of the License, or
00006 //    (at your option) any later version.
00007 //
00008 //    This program is distributed in the hope that it will be useful,
00009 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 //    GNU General Public License for more details.
00012 //
00013 //                 SEE  Notice1.doc made by 
00014 //                 LAWRENCE LIVERMORE NATIONAL LABORATORY
00015 //
00016 
00018 //   dummympi.h  (include file for library)
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       

Generated on Fri Nov 2 01:25:56 2007 for IPPL by doxygen 1.3.5