diff --git a/results/energy.png b/results/energy.png index 34b3407..537f657 100644 Binary files a/results/energy.png and b/results/energy.png differ diff --git a/results/success.png b/results/success.png index 2c153d9..fcf0d19 100644 Binary files a/results/success.png and b/results/success.png differ diff --git a/src/simulator.cc b/src/simulator.cc index 79a5d5c..d2f971f 100644 --- a/src/simulator.cc +++ b/src/simulator.cc @@ -56,15 +56,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(simulator, "[DAO] Loosely Coupled DSS"); /// @brief For convenience sake typedef unsigned int u32; -u32 nON; -bool *data_ready; -bool is_data_rcv_ready(){ - for(int i=0;iget_host_count(); - data_ready=(bool*)malloc(sizeof(bool)*nON); + u32 nON=simgrid::s4u::Engine::get_instance()->get_host_count(); for(u32 i=0;i args; std::ostringstream ss; ss<< "on" < args) { // Init various variables std::string selfName = simgrid::s4u::this_actor::get_host()->get_name(); - int id=stoi(args[0]); simgrid::s4u::this_actor::get_host()->turn_on(); Inputs i(selfName); simgrid::s4u::Mailbox *m = simgrid::s4u::Mailbox::by_name("medium");