From: Martin Quinson Date: Sat, 21 Oct 2023 13:25:14 +0000 (+0200) Subject: Fix the dependency of barrier from the same actor [Mathieu Laurent] X-Git-Tag: v3.35~89^2~70 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d594119a18f55d9be480bfdc3897d4990e0444d8 Fix the dependency of barrier from the same actor [Mathieu Laurent] --- diff --git a/src/mc/transition/TransitionSynchro.cpp b/src/mc/transition/TransitionSynchro.cpp index a0c16de759..df630eec34 100644 --- a/src/mc/transition/TransitionSynchro.cpp +++ b/src/mc/transition/TransitionSynchro.cpp @@ -29,6 +29,10 @@ bool BarrierTransition::depends(const Transition* o) const if (o->type_ < type_) return o->depends(this); + // Actions executed by the same actor are always dependent + if (o->aid_ == aid_) + return true; + if (const auto* other = dynamic_cast(o)) { if (bar_ != other->bar_) return false;