Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

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 CmiBool NamdDummyLB::QueryBalanceNow(int _step) {
00034   return CmiTrue;
00035 }
00036 
00037 CmiBool NamdDummyLB::QueryDumpData() {
00038   return CmiFalse;
00039 }
00040 
00041 // Dummy work function
00042 
00043 #if CHARM_VERSION > 60301
00044 void NamdDummyLB::work(LDStats* stats) {
00045 #else
00046 void NamdDummyLB::work(LDStats* stats, int n_pes) {
00047 #endif
00048   // CkPrintf("[%d] NamdDummyLB At WORK\n",CkMyPe());
00049 }

Generated on Mon May 20 04:07:17 2013 for NAMD by  doxygen 1.3.9.1