Blockstructured Adaptive Mesh Refinement in object-oriented C++
00001 #ifndef _included_CommIOServer_h 00002 #define _included_CommIOServer_h 00003 00009 #include "DAGHParams.h" 00010 #include "DAGHIOParams.h" 00011 00012 #include "PackedGridDataBucket.h" 00013 00014 #include "CommServer.h" 00015 00016 #define DAGHIOServerRcvNULL ((DAGHIOServerRcv *) NULL) 00017 #define DAGHIOServerSndNULL ((DAGHIOServerSnd *) NULL) 00018 #define DAGHIOServerPingNULL ((DAGHIOServerPing *) NULL) 00019 00020 class DAGHIOServerRcv : public comm_service 00021 { 00022 public: 00023 class GridHierarchy& gh; 00024 int Size; 00025 DAGHIO_WriteFunc wf; 00026 int end_cnt; 00027 00028 DAGHIOServerRcv(const unsigned tag, GridHierarchy& gridherarchy, 00029 DAGHIO_WriteFunc writefunc); 00030 void callrecv( const MPI_Status & ); 00031 void rcv_update( void * ); 00032 inline void Set_DAGHIOWriteFunc(DAGHIO_WriteFunc writefunc) { wf = writefunc; } 00033 const char * name(void) const; 00034 }; 00035 00036 class DAGHIOServerSnd : public comm_service 00037 { 00038 public: 00039 class GridHierarchy& gh; 00040 DAGHIO_ReadFunc rf; 00041 struct gdhdr Req; 00042 int Size; 00043 int end_cnt; 00044 00045 DAGHIOServerSnd(const unsigned tag, GridHierarchy& gridherarchy, 00046 DAGHIO_ReadFunc readfunc); 00047 void callrecv( const MPI_Status & ); 00048 void snd_update( struct gdhdr & ); 00049 inline void Set_DAGHIOReadFunc(DAGHIO_ReadFunc readfunc) { rf = readfunc; } 00050 const char * name(void) const; 00051 }; 00052 00053 class DAGHIOServerPing : public comm_service 00054 { 00055 class GridHierarchy& gh; 00056 DAGHIO_PingFunc pf; 00057 int flag; 00058 int end_cnt; 00059 public: 00060 DAGHIOServerPing(const unsigned tag, GridHierarchy& gridherarchy, 00061 DAGHIO_PingFunc pingfunc); 00062 void callrecv( const MPI_Status & ); 00063 const char * name(void) const; 00064 }; 00065 00066 #endif 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04