fix CmiGetRestartPhase definition
[charm.git] / src / arch / mpi / conv-mach-syncft.h
1
2 #undef CMK_MSG_HEADER_EXT_
3 //#undef CMK_MSG_HEADER_EXT
4 //#undef CMK_MSG_HEADER_BIGSIM_
5 /* expand the header to store the restart phase counter(pn) */
6 #define CMK_MSG_HEADER_EXT_   CmiUInt2 rank, root, hdl,xhdl,info, stratid, pn,d7; unsigned char cksum, magic; CmiUInt2 redID;
7 //#define CMK_MSG_HEADER_EXT    { CMK_MSG_HEADER_EXT_ }
8 //#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;}
9 //#define CMK_MSG_HEADER_BIGSIM_  { CMK_MSG_HEADER_EXT_ CMK_BIGSIM_FIELDS }
10
11 #define CmiGetRestartPhase(m)       ((((CmiMsgHeaderExt*)m)->pn))
12
13 #define __FAULT__                                          1
14
15 #define CMK_MEM_CHECKPOINT                                 1