00001 00005 00006 #ifndef _TEAMLB_H_ 00007 #define _TEAMLB_H_ 00008 00009 #include "CentralLB.h" 00010 #include "TeamLB.decl.h" 00011 #include <metis.h> 00012 00013 void CreateTeamLB(); 00014 BaseLB * AllocateTeamLB(); 00015 00016 class TeamLB : public CBase_TeamLB { 00017 public: 00018 TeamLB(const CkLBOptions &); 00019 TeamLB(CkMigrateMessage *m):CBase_TeamLB(m) { lbname = "TeamLB"; } 00020 00021 void work(LDStats* stats); 00022 void pup(PUP::er &p) { } 00023 00024 private: 00025 idx_t teamSize; 00026 idx_t numberTeams; 00027 00028 bool QueryBalanceNow(int step) { return true; } 00029 }; 00030 00031 #endif /* _TEAMLB_H_ */ 00032