forked from N-BodyShop/changa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Orb3dLB_notopo.h
45 lines (32 loc) · 1.01 KB
/
Orb3dLB_notopo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* \addtogroup CkLdb
*/
/*@{*/
#ifndef _ORB3DLB_NOTOPO_H_
#define _ORB3DLB_NOTOPO_H_
#include "Orb3dLB_notopo.decl.h"
#include <queue>
#include "Orb3dLBCommon.h"
#include "pup_stl.h"
void CreateOrb3dLB_notopo();
BaseLB * AllocateOrb3dLB_notopo();
/// @brief Load balancer that divides work according to a 3D spatial
/// ORB.
class Orb3dLB_notopo : public CBase_Orb3dLB_notopo, public Orb3dCommon {
private:
vector<OrbObject> tps;
// things are stored in here before work
// is ever called.
void init();
bool QueryBalanceNow(int step);
void printData(BaseLB::LDStats &stats, int phase, int *revObjMap);
void pupDump(PUP::er &, BaseLB::LDStats *, vector<Event> *);
// void orbPartition(vector<Event> *events, OrientedBox<float> &box, int procs);
// int partitionRatioLoad(vector<Event> &events, float ratio);
public:
Orb3dLB_notopo(const CkLBOptions &);
Orb3dLB_notopo(CkMigrateMessage *m): CBase_Orb3dLB_notopo(m) {init();}
void work(BaseLB::LDStats* stats);
};
#endif /* _Orb3dLB_notopo_H_ */
/*@}*/