2 #undef CMK_MSG_HEADER_BASIC
3 #undef CMK_MSG_HEADER_EXT_
4 //#undef CMK_MSG_HEADER_EXT
5 //#undef CMK_MSG_HEADER_BIGSIM_
6 /* expand the header to store the restart phase counter(pn) */
7 #define CMK_MSG_HEADER_BASIC CMK_MSG_HEADER_EXT
8 #define CMK_MSG_HEADER_EXT_ CmiUInt2 d0,d1,d2,d3,hdl,pn,d4,stratid,xhdl,info,dd,redID,pad2; CmiUInt4 root,size;
9 //#define CMK_MSG_HEADER_EXT { CMK_MSG_HEADER_EXT_ }
10 //#define CMK_MSG_HEADER_BIGSIM_ { CmiUInt2 d0,d1,d2,d3,d4,d5,hdl,xhdl,pn,info; int nd, n; double rt; CmiInt2 tID; CmiUInt2 hID; char t; int msgID; int srcPe;}
11 //#define CMK_MSG_HEADER_BIGSIM_ { CMK_MSG_HEADER_EXT_ CMK_BIGSIM_FIELDS }
13 #define CmiGetRestartPhase(m) ((((CmiMsgHeaderExt*)m)->pn))
17 #define CMK_MEM_CHECKPOINT 1