comlib: Fix non-initialized cookie that breaks multicast strategies
[charm.git] / src / ck-com / KDirectMulticastStrategy.h
index 1235e73d6979818a5f9b00c2eab112cf507fc3c6..c44b8742f884e9a0008713d3da349cc1d3a7bd5b 100644 (file)
@@ -1,53 +1,61 @@
-#ifndef KDIRECT_MULTICAST_STRATEGY
-#define KDIRECT_MULTICAST_STRATEGY
+/* #ifdef filippo */
 
-#include "DirectMulticastStrategy.h"
+/* /\*****************  DISCLAMER ********************* */
+/*  * This class is old and not compatible. Deprecated */
+/*  **************************************************\/ */
 
-class KDirectHashObject{
- public:
-    CkVec<CkArrayIndexMax> indices;
-    int npes;
-    int *pelist;
-};
+/* #ifndef KDIRECT_MULTICAST_STRATEGY */
+/* #define KDIRECT_MULTICAST_STRATEGY */
 
+/* #include "DirectMulticastStrategy.h" */
 
-class KDirectMulticastStrategy: public DirectMultcastStrategy {
- protected:
-    int kfactor;
+/* class KDirectHashObject{ */
+/*  public: */
+/*     CkVec<CkArrayIndexMax> indices; */
+/*     int npes; */
+/*     int *pelist; */
+/* }; */
 
-    //Initialize and cache information in a section id which can be
-    //used the next time the section is multicast to.
-    virtual void initSectionID(CkSectionID *sid);
+
+/* class KDirectMulticastStrategy: public DirectMultcastStrategy { */
+/*  protected: */
+/*     int kfactor; */
+
+/*     //Initialize and cache information in a section id which can be */
+/*     //used the next time the section is multicast to. */
+/*     virtual void initSectionID(CkSectionID *sid); */
     
-    //Common Initializer for group and array constructors
-    //Every substrategy should implement its own
-    void commonKDirectInit();
+/*     //Common Initializer for group and array constructors */
+/*     //Every substrategy should implement its own */
+/*     void commonKDirectInit(); */
     
-    //Create a new multicast message with the array section in it
-    ComlibMulticastMsg * getNewMulticastMessage(CharmMessageHolder *cmsg);
+/*     //Create a new multicast message with the array section in it */
+/*     ComlibMulticastMsg * getNewMulticastMessage(CharmMessageHolder *cmsg); */
 
- public:
+/*  public: */
     
-    //Group constructor
-    KDirectMulticastStrategy(int ndestpes = 0, int *destpelist = 0);    
+/*     //Group constructor */
+/*     KDirectMulticastStrategy(int ndestpes = 0, int *destpelist = 0);     */
 
-    //Array constructor
-    KDirectMulticastStrategy(CkArrayID aid);
+/*     //Array constructor */
+/*     KDirectMulticastStrategy(CkArrayID aid); */
 
-    KDirectMulticastStrategy(CkMigrateMessage *m): Strategy(m){}
+/*     KDirectMulticastStrategy(CkMigrateMessage *m): Strategy(m){} */
     
-    //    virtual void insertMessage(CharmMessageHolder *msg);
-    virtual void doneInserting();
+/*     //    virtual void insertMessage(CharmMessageHolder *msg); */
+/*     virtual void doneInserting(); */
 
-    //Called by the converse handler function
-    virtual void handleMulticastMessage(void *msg);
+/*     //Called by the converse handler function */
+/*     virtual void handleMulticastMessage(void *msg); */
     
-    //virtual void beginProcessing(int nelements);
+/*     //virtual void beginProcessing(int nelements); */
     
-    void setKFactor(int k){ kfactor = k; }
+/*     void setKFactor(int k){ kfactor = k; } */
     
-    virtual void pup(PUP::er &p);    
-    PUPable_decl(KDirectMulticastStrategy);
-};
+/*     virtual void pup(PUP::er &p);     */
+/*     PUPable_decl(KDirectMulticastStrategy); */
+/* }; */
+
+/* #endif */
 
-#endif
+/* #endif */