changed for immediate msg
[charm.git] / src / conv-ldb / cldb.neighbor.h
1 /*****************************************************************************
2  * $Source$
3  * $Author$
4  * $Date$
5  * $Revision$
6  *****************************************************************************/
7
8 #include "cldb.h"
9 /* for sqrt() */
10 #include <math.h>
11
12 typedef struct loadmsg_s {
13   char header[CmiMsgHeaderSizeBytes];
14   int pe, load;
15 #if ! USE_MULTICAST
16   short fromindex, toindex;
17   struct loadmsg_s  *next;
18 #endif
19 } loadmsg;
20
21 /* work request message when idle */
22 typedef struct requestmsg_s {
23   char header[CmiMsgHeaderSizeBytes];
24   int from_pe;
25   int to_rank;
26 } requestmsg;
27
28 typedef struct CldNeighborData
29 {
30   int pe, load;
31 #if ! USE_MULTICAST
32   int index;                 // my index on this neighbor
33 #endif
34 } *CldNeighborData;
35
36 CpvDeclare(CldNeighborData, neighbors);
37 CpvDeclare(CmiGroup, neighborGroup);
38 CpvDeclare(int, numNeighbors);