Skip to content

Commit

Permalink
Exclude the target node itself when computing DNET
Browse files Browse the repository at this point in the history
  • Loading branch information
byeonggiljun committed Oct 28, 2024
1 parent 2b7cae5 commit 7f81c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/federated/RTI/rti_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ tag_t downstream_next_event_tag(scheduling_node_t* target_node, uint16_t node_se
result = candidate;
} else {
for (int j = 0; j < n; j++) {
if (lf_tag_compare(rti_common->min_delays[target_node->id * n + j], FOREVER_TAG) != 0) {
// The node j is a downstream node.
if (target_node->id != j && (lf_tag_compare(rti_common->min_delays[target_node->id * n + j], FOREVER_TAG) != 0)) {
// The node j is a downstream node and not the target node itself.
scheduling_node_t* target_dowstream = rti_common->scheduling_nodes[j];
// if (is_in_zero_delay_cycle(target_dowstream)) {
// // The target node is an upstream of ZDC. Do not send DNET to this node.
Expand Down

0 comments on commit 7f81c7c

Please sign in to comment.