← ref. #21.
Your file
https://drive.google.com/file/d/0B31...phSlUtWTQ/view
.. was renamed to anthocnet-wrls1.tcl .
Generally, ns2 is for a 32bits (i686) OS.
However, the most simulations will also work with a 64bits OS.
Testing with a 32bits OS :
Code:
$ ns234-anthocnet anthocnet-wrls1.tcl
num_nodes is set 300
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
ns: _o428 setdest 735.0 0.0 3.0:
(_o428 cmd line 1)
invoked from within
"_o428 cmd setdest 735.0 0.0 3.0"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o428" line 2)
(SplitObject unknown line 2)
invoked from within
"_o428 setdest 735.0 0.0 3.0"
The files complex-ant.tr 103MB, complex-wrls.nam 55MB, win-complex-ant.tr 106kB
... are created. ( And the empty file rtable.txt ).
Commenting line 78 with a hash mark ( # ) :
# $ns at $timer "$node_($i) setdest $x $y 3.0"
→
Code:
$ ns234-anthocnet Edited-anthocnet-wrls1.tcl
num_nodes is set 300
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault
Files : complex-ant.tr 264MB, complex-wrls.nam 138MB, win-complex-ant.tr 284kB
( And the empty file rtable.txt ).
$ nam complex-wrls.nam : Perfect.
If you can get files that size created :
I don't think you should worry about 'Segmentation fault'.
A solution : I have no idea.
Generally about 'Segmentation fault' in ns2 :
http://www.linuxquestions.org/questi...-4175530493/#2
-