From 22de1606d048d8ad200f93643bc80434644acea7 Mon Sep 17 00:00:00 2001 From: Bruno Donassolo Date: Wed, 10 Mar 2021 15:05:45 +0100 Subject: [PATCH] Improv comment --- src/surf/surf_c_bindings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index 097f218b32..c5b9139231 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -102,10 +102,11 @@ double surf_solve(double max_date) XBT_DEBUG("Next TRACE event: %f", next_event_date); for (auto* model : engine->get_model_list(simgrid::kernel::resource::Model::Type::NETWORK)) { + /* Skip all idempotent models, they were already treated above + * NS3 is the one to handled here */ if (model->next_occurring_event_is_idempotent()) continue; - // NS3, I see you if (next_event_date != -1.0) { time_delta = std::min(next_event_date - NOW, time_delta); } else { -- 2.20.1