8 #ifndef DLB_UNIT_TEST_HPP_ 
    9 #define DLB_UNIT_TEST_HPP_ 
   13 BOOST_AUTO_TEST_SUITE (DLB_test)
 
   15 BOOST_AUTO_TEST_CASE( DLB_test_use)
 
   21     init_global_v_cluster(&boost::unit_test::framework::master_test_suite().argc,&boost::unit_test::framework::master_test_suite().argv);
 
   27     dlb.setComputationCost(5);
 
   28     dlb.setSimulationStartTime(0);
 
   29     dlb.setSimulationEndTime(10);
 
   34     for(
float t = dlb.getSimulationStartTime();
 
   35             t < dlb.getSimulationEndTime();
 
   38         dlb.startIteration(0);
 
   43             dlb.endIteration(t_high++);
 
   47         bool rebalance = dlb.rebalanceNeeded();
 
   49         if(rebalance)  {t_high = 1;}
 
   52             BOOST_REQUIRE_EQUAL(rebalance,
true);
 
   57 BOOST_AUTO_TEST_SUITE_END()
 
size_t getProcessUnitID()
Get the process unit id. 
 
Implementation of VCluster class.