minor change to balanced tree example
authorYanhuaSun <sun51@illinois.edu>
Tue, 10 May 2011 16:51:14 +0000 (11:51 -0500)
committerYanhuaSun <sun51@illinois.edu>
Tue, 10 May 2011 16:51:14 +0000 (11:51 -0500)
examples/charm++/state_space_searchengine/BalancedTree/main.C
examples/charm++/state_space_searchengine/BalancedTree/searchEngineAPI.C

index cfec83f2dcba8af0ef8d6ada744099767d497f12..c7f92ac20b63d34ef6f01aa3377bac498f7c46d9 100644 (file)
@@ -12,7 +12,7 @@ public:
     Main(CkArgMsg* msg )
     {
         branchfactor = 2;
-        CkPrintf("main initial_grainsize branchfactor depth\n");
+        CkPrintf("main initial_grainsize branchfactor depth target\n");
         if(msg->argc == 5)
         {
             initial_grainsize = atoi(msg->argv[1]);
index ccba6dedca2189e01f4611e6065d8726fbb70784..de57d366bf985d8b58fbf60383fdf04bd381761e 100644 (file)
@@ -31,12 +31,12 @@ inline void createChildren( StateBase *_base , Solver* solver, bool parallel)
     BTreeStateBase base = *((BTreeStateBase*)_base);
     long long t = 1;
 
+    CkPrintf(" Processed :thisindex=%lld, depth=%d\n", base.index, base.depth);
     for(int i=0; i<target; i++)
          t = t << 1;
     for(int childIndex=0; childIndex<branchfactor; childIndex++)
     {
         long long thisindex = base.index * branchfactor + childIndex;
-        //CkPrintf(" t = %lld, based index=%lld _basedindex=%lld  thisindex=%lld, depth=%d\n", t, base.index, ((BTreeStateBase*)_base)->index, thisindex, base.depth);
         if(base.depth == depth-1)
         {
             if( t-1 == thisindex)