X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2fba42be04d0e736a8c5a800561fdf8a145cdb17..4d58af5e9f29128ea5d5cbb677884eae5ba1bf81:/src/kernel/activity/ExecImpl.cpp diff --git a/src/kernel/activity/ExecImpl.cpp b/src/kernel/activity/ExecImpl.cpp index 83e3b28128..a05e00c29c 100644 --- a/src/kernel/activity/ExecImpl.cpp +++ b/src/kernel/activity/ExecImpl.cpp @@ -71,6 +71,7 @@ ExecImpl* ExecImpl::start() set_state(State::RUNNING); if (not MC_is_active() && not MC_record_replay_is_active()) { if (get_hosts().size() == 1) { + xbt_assert(not flops_amounts_.empty(), "Cannot start Exec: no flops_amount defined."); if (thread_count_ == 1) { model_action_ = get_host()->get_cpu()->execution_start(flops_amounts_.front(), bound_); model_action_->set_sharing_penalty(sharing_penalty_); @@ -202,8 +203,6 @@ void ExecImpl::finish() void ExecImpl::reset() { clear_hosts(); - bytes_amounts_.clear(); - flops_amounts_.clear(); set_start_time(-1.0); }