cfec83f2dcba8af0ef8d6ada744099767d497f12
[charm.git] / examples / charm++ / state_space_searchengine / BalancedTree / main.C
1 #include "main.decl.h"
2
3 #include "searchEngine.h"
4 int branchfactor;
5 int depth;
6 int initial_grainsize;
7 int target;
8
9 class Main
10 {
11 public:
12     Main(CkArgMsg* msg )
13     {
14         branchfactor = 2;
15         CkPrintf("main initial_grainsize branchfactor depth\n");
16         if(msg->argc == 5)
17         {
18             initial_grainsize = atoi(msg->argv[1]);
19             branchfactor = atoi(msg->argv[2]);
20             depth = atoi(msg->argv[3]);
21             target = atoi(msg->argv[4]);            
22             delete msg;
23         }else
24         {
25             CkPrintf("Check input parameter\n");
26             delete msg;
27             CkExit();
28         }
29
30         searchEngineProxy.start();
31     }
32
33 };
34
35 #include "main.def.h"