Bug #1062: Fix linking errors by moving definition of userDrivenMode to machine-commo...
[charm.git] / src / conv-ldb / cldb.neighbor.h
blob4ed44175306cfc3c9c93e842f71597775a4442a7
1 #include "cldb.h"
2 /* for sqrt() */
3 #include <math.h>
5 typedef struct loadmsg_s {
6 char header[CmiMsgHeaderSizeBytes];
7 int pe, load;
8 #if ! USE_MULTICAST
9 short fromindex, toindex;
10 struct loadmsg_s *next;
11 #endif
12 } loadmsg;
14 /* work request message when idle */
15 typedef struct requestmsg_s {
16 char header[CmiMsgHeaderSizeBytes];
17 int from_pe;
18 int to_rank;
19 } requestmsg;
21 typedef struct CldNeighborData
23 int pe, load;
24 #if ! USE_MULTICAST
25 int index; // my index on this neighbor
26 #endif
27 } *CldNeighborData;
29 CpvDeclare(CldNeighborData, neighbors);
30 CpvDeclare(CmiGroup, neighborGroup);
31 CpvDeclare(int, numNeighbors);