at restart, restore broadcast spring cleaner
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 13 Feb 2012 03:39:49 +0000 (21:39 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 13 Feb 2012 03:39:49 +0000 (21:39 -0600)
src/ck-core/ckarray.C

index 595984b79e3cd26a67e3a88391e8371e4702c4d0..70b2d3bcbc77717fc21c994a96c17ab028823395 100644 (file)
@@ -786,6 +786,10 @@ void CkArray::pup(PUP::er &p){
                /// Restore our default listeners:
                broadcaster=(CkArrayBroadcaster *)(CkArrayListener *)(listeners[0]);
                reducer=(CkArrayReducer *)(CkArrayListener *)(listeners[1]);
+                /// set up broadcast cleaner
+                if (!stableLocations)
+                    CcdCallOnConditionKeep(CcdPERIODIC_1minute,
+                                          staticSpringCleaning, (void *)this);
        }
 }