I want to simulate an ad hoc mobile network with 100 mobile nodes in 1000 seconds. But the problem is it take too much memory space and time to preform simulation. In order to remove unnecessary info of trace files, I tried to remove movement trace of mobile nodes with movementTrace OFF in node-config . After this I found that the trace file has the same result when movementTrace is either ON or OFF. I mean lines like:
* M 1.00000 0 (490.18, 456.19, 0.00), (0.00, 0.00), 0.00 ** M 1.00000 1 (130.68, 257.04, 0.00), (0.00, 0.00), 0.00 * * M 1.00000 2 (88.83, 394.25, 0.00), (0.00, 0.00), 0.00 M 1.00000 3 (236.69, 88.64, 0.00), (0.00, 0.00), 0.00 M 1.00000 4 (264.81, 234.03, 0.00), (0.00, 0.00), 0.00 M 1.00000 0 (490.18, 456.19, 0.00), (377.91, 111.04), 2.26 M 1.00000 1 (130.68, 257.04, 0.00), (186.11, 421.37), 3.98 M 1.00000 2 (88.83, 394.25, 0.00), (244.22, 22.03), 3.33 M 1.00000 3 (236.69, 88.64, 0.00), (192.80, 465.19), 3.81 M 1.00000 4 (264.81, 234.03, 0.00), (103.61, 340.43), 0.95 *So, I changed the relating code in ~ns/common/mobilenode.cc -> proc log_movement() . After having compiled, the new mobilenode.o obejct was created. I run the silmulation with new created object, but I found that above lines ( movement trace lines in trace file) didn't change at all. It seems these lines are coming from the other place. I searched all files that might be the reason of creation of these lines of trece file, but i did not find any thing. void MobileNode::log_movement() { if (!log_target_) return; Scheduler& s = Scheduler::instance(); sprintf(log_target_->pt_->buffer(), "M %.5f %d (%.2f, %.2f, %.2f), (%.2f, %.2f), %.2f", s.clock(), address_, X_, Y_, Z_, destX_, destY_, speed_); log_target_->pt_->dump(); } The question is where these lines of trace file are coming from? I would appreciate any help Amir