NAMD
ComputeGlobalMsgs.C
Go to the documentation of this file.
1 
7 #include "ComputeGlobalMsgs.h"
8 #include "packmsg.h"
9 
10 //#define DEBUGM
11 #define MIN_DEBUG_LEVEL 3
12 #include "Debug.h"
13 
14 #include "ComputeMgr.decl.h"
15 
16 
17 // CONFIG MESSAGE
18 
19 #if 0
20 ComputeGlobalConfigMsg::ComputeGlobalConfigMsg(void) {
21 }
22 
23 ComputeGlobalConfigMsg::~ComputeGlobalConfigMsg(void) {
24 }
25 
26 PACK_MSG(ComputeGlobalConfigMsg,
27  PACK_RESIZE(aid);
28  PACK_RESIZE(gdef);
29 )
30 #endif
31 
32 
33 // DATA MESSAGE
34 
36 }
37 
39 }
40 
42  PACK(step);
43  PACK(count);
44  PACK(patchcount);
45  PACK_RESIZE(aid);
46  PACK_RESIZE(p);
47  PACK_RESIZE(gcom);
48  PACK_RESIZE(gmass);
49  PACK_RESIZE(gridobjindex);
50  PACK_RESIZE(gridobjvalue);
51  PACK_RESIZE(fid);
52  PACK_RESIZE(tf);
53  PACK_RESIZE(gtf);
54  PACK_RESIZE(lat);
55 )
56 
57 
58 // RESULTS MESSAGE
59 
61  reconfig = 0;
62  resendCoordinates = 0;
63 }
64 
66 }
67 
69  PACK_RESIZE(aid);
70  PACK_RESIZE(f);
71  PACK_RESIZE(gforce);
72  PACK_RESIZE(gridobjforce);
73  PACK(seq);
74  PACK(totalforces);
75  PACK(reconfig);
76  PACK(resendCoordinates);
77  if ( packmsg_msg->reconfig ) {
78  PACK_RESIZE(newaid);
79  PACK_RESIZE(newgdef);
80  PACK_RESIZE(newgridobjid);
81  }
82 )
#define PACK_MSG(MSGTYPE, MSGDATA)
Definition: packmsg.h:35
#define PACK_RESIZE(DATA)
Definition: packmsg.h:125
#define PACK(DATA)
Definition: packmsg.h:123