diff --git a/core/federated/RTI/rti.c b/core/federated/RTI/rti.c index e8c590430..48ca1b4af 100644 --- a/core/federated/RTI/rti.c +++ b/core/federated/RTI/rti.c @@ -807,9 +807,11 @@ void handle_time_advance_notice(federate_t* fed) { LOG_PRINT("RTI received from federate %d the Time Advance Notice (TAN) %lld.", fed->id, fed->time_advance - start_time); - // Update the completed tag to match the TAN. + // Update the NET to match the TAN. The NET is a promise that, absent + // network inputs, the federate will not produce an output with tag + // less than the NET. tag_t ta = (tag_t) {.time = fed->time_advance, .microstep = 0}; - fed->completed = ta; + fed->next_event = ta; // We need to reply just as if this were a NET because it could unblock // network input port control reactions. // This is a side-effect of the combination of distributed cycles and