Bug 1914 - Null Message fails without a stop time
Null Message fails without a stop time
Status: NEW
Product: ns-3
Classification: Unclassified
Component: mpi
ns-3.19
PC Linux
: P5 minor
Assigned To: George Riley
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-12 11:13 EDT by Jared Ivey
Modified: 2014-05-12 11:13 EDT (History)
2 users (show)

See Also:


Attachments
A modified version of simple-distributed.cc that removes stop times and provides a maximum number of bytes for the OnOffApplications (9.30 KB, text/x-c++src)
2014-05-12 11:13 EDT, Jared Ivey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Ivey 2014-05-12 11:13:33 EDT
Created attachment 1839 [details]
A modified version of simple-distributed.cc that removes stop times and provides a maximum number of bytes for the OnOffApplications

When using OnOffApplications, if a stop time for the simulator and applications is not given and instead a maximum number of bytes is provided, an assert will fail in the NullMessageSimulatorImpl when the event queue for an LP is empty but the simulator attempts to pull the next event anyway. 

The attached example is a modified version of simple-distributed.cc that removes stop times and provides a maximum number of bytes for the OnOffApplications.