modify the pose array creation to work with load balancer.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 31 Mar 2010 03:09:57 +0000 (22:09 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 31 Mar 2010 03:09:57 +0000 (22:09 -0500)
examples/pose/Ring/pgm.C

index 7ac323f1557639a3cbb5f6a4d615aa842429920e..20d1ebe521242cca72def945e4cc0807c7851606 100644 (file)
@@ -70,8 +70,8 @@ main::main(CkArgMsg *m)
   //Make a new array using that map
   CkArrayOptions opts(totalObjs);
   opts.setMap(myMap);
-  (*(CProxy_worker *) &POSE_Objects) = CProxy_worker::ckNew(wd, opts);
   POSE_Objects.doneInserting();
+  (*(CProxy_worker *) &POSE_Objects) = CProxy_worker::ckNew(wd, opts);
   /*
   // create all the workers
   WorkerData *wd;