build: fix travis MPI/SMP build
[charm.git] / src / conv-ldb / cldb.neighbor.h
1 #include "cldb.h"
2 /* for sqrt() */
3 #include <math.h>
4
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;
13
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;
20
21 typedef struct CldNeighborData_s
22 {
23   int pe, load;
24 #if ! USE_MULTICAST
25   int index;                 // my index on this neighbor
26 #endif
27 } *CldNeighborData;
28
29 CpvDeclare(CldNeighborData, neighbors);
30 CpvDeclare(CmiGroup, neighborGroup);
31 CpvDeclare(int, numNeighbors);