NamdDummyLB.C

Go to the documentation of this file.
00001 
00002 #if !defined(WIN32) || defined(__CYGWIN__)
00003 #include <unistd.h>
00004 #endif
00005 #include <fcntl.h>
00006 
00007 #include "InfoStream.h"
00008 #include "NamdDummyLB.h"
00009 #include "NamdDummyLB.def.h"
00010 #include "Node.h"
00011 #include "PatchMap.h"
00012 #include "ComputeMap.h"
00013 #include "LdbCoordinator.h"
00014 
00015 void CreateNamdDummyLB() {
00016   loadbalancer = CProxy_NamdDummyLB::ckNew();
00017 }
00018 
00019 NamdDummyLB *AllocateNamdDummyLB() {
00020   return new NamdDummyLB((CkMigrateMessage*)NULL);
00021 }
00022 
00023 NamdDummyLB::NamdDummyLB(CkMigrateMessage *msg): CentralLB(msg) {
00024   lbname = (char*)"NamdDummyLB";
00025 }
00026  
00027 NamdDummyLB::NamdDummyLB(): CentralLB(CkLBOptions(-1)) {
00028   lbname = (char*)"NamdDummyLB";
00029   if (CkMyPe() == 0)
00030     CkPrintf("[%d] DummyLB created\n",CkMyPe());
00031 }
00032 
00033 bool NamdDummyLB::QueryBalanceNow(int _step) {
00034   return true;
00035 }
00036 
00037 bool NamdDummyLB::QueryDumpData() {
00038   return false;
00039 }
00040 
00041 // Dummy work function
00042 
00043 void NamdDummyLB::work(LDStats* stats) {
00044   // CkPrintf("[%d] NamdDummyLB At WORK\n",CkMyPe());
00045 }

Generated on Sun Nov 19 01:17:14 2017 for NAMD by  doxygen 1.4.7