Blockstructured Adaptive Mesh Refinement in object-oriented C++
00001 #ifndef _included_DAGHIOParam_h 00002 #define _included_DAGHIOParam_h 00003 00009 /* DAGH IO Msg Types */ 00010 00011 #define DAGHIOTypeShift (8) 00012 #define DAGHIOInitReqTag (1 << DAGHIOTypeShift) 00013 #define DAGHIOEndReqTag (2 << DAGHIOTypeShift) 00014 #define DAGHIOCloseReqTag (4 << DAGHIOTypeShift) 00015 #define DAGHIOCloseTag (5 << DAGHIOTypeShift) 00016 #define DAGHIOWriteReqTag (6 << DAGHIOTypeShift) 00017 #define DAGHIOWriteDataTag (7 << DAGHIOTypeShift) 00018 #define DAGHIOReadReqTag (8 << DAGHIOTypeShift) 00019 #define DAGHIOReadDataTag (9 << DAGHIOTypeShift) 00020 00021 /* Moved these to DAGHParams.h so that they 00022 can be used by DAGHSteer classes - 10/28/97 */ 00023 /* DAGH IO Data Types */ 00024 00025 //#define DAGH_Integer (1) 00026 //#define DAGH_Real (2) 00027 //#define DAGH_Double (3) 00028 //#define DAGH_Character (4) 00029 //#define DAGH_Byte (5) 00030 00031 inline static unsigned DAGHIO_DataSize(int const type) 00032 { return ( (type == DAGH_Integer) ? sizeof(INTEGER) : 00033 (type == DAGH_Real) ? sizeof(REAL) : 00034 (type == DAGH_Double) ? sizeof(DOUBLE) : 00035 (type == DAGH_Character) ? sizeof(CHARACTER) : 00036 (type == DAGH_Byte) ? 1 : 1 ); } 00037 00038 /* DAGH IO Functions */ 00039 struct gdhdr; 00040 class GridHierarchy; 00041 00042 typedef void (*DAGHIO_WriteFunc) (class GridHierarchy & , struct gdhdr *, void *); 00043 typedef void (*DAGHIO_ReadFunc) (class GridHierarchy & , struct gdhdr *, void *); 00044 typedef void (*DAGHIO_PingFunc) (class GridHierarchy &); 00045 00046 extern DAGHIO_WriteFunc DAGHIO_Write[]; 00047 extern DAGHIO_ReadFunc DAGHIO_Read[]; 00048 extern DAGHIO_PingFunc DAGHIO_Close[]; 00049 00050 #endif
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04