[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Depending on the system id (rank) of the simulator, the information traced will be different, since traffic originating on one simulator is not seen by another simulator until it reaches nodes specific to that simulator. The easiest way to keep track of different traces is to just name the trace files or pcaps differently, based on the system id of the simulator. For example, something like this should work well, assuming all of these local variables were previously defined:
if (MpiInterface::GetSystemId () == 0) { pointToPoint.EnablePcapAll ("distributed-rank0"); phy.EnablePcap ("distributed-rank0", apDevices.Get (0)); csma.EnablePcap ("distributed-rank0", csmaDevices.Get (0), true); } else if (MpiInterface::GetSystemId () == 1) { pointToPoint.EnablePcapAll ("distributed-rank1"); phy.EnablePcap ("distributed-rank1", apDevices.Get (0)); csma.EnablePcap ("distributed-rank1", csmaDevices.Get (0), true); }
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated on April 21, 2010 using texi2html 1.82.