Hi.
Assume "tcp-10-1"
https://groups.google.com/forum/?fromgroups#!searchin/ns-users/tcp-10-1|sort:relevance/ns-users/1Ba0RdobLyQ/MM1whseBEwAJ→ Jan 22 2016.
Your file aodv_10.tcl is calling a "node_(10)" , with "tcp-10-1".
10 nodes is 0....9 . Thus aodv_10.tcl must have "set val(nn)
11 "
.... in order to include a node by name "node_(10)".
( And "tcp-10-1" should (probably) read "# nodes: 11, ...." in the head line. (Line 2).
Then the result is :
$ ns aodv_10.tcl
num_nodes is set 11
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Processing node 0
Processing node 1
Processing node 2
Processing node 3
Processing node 4
Processing node 5
Processing node 6
Processing node 7
Processing node 8
Processing node 9
Processing node 10
ns: _o14 setdest 949.0684128587192 1010.0 36.41071854721302:
(_o14 cmd line 1)
invoked from within
"_o14 cmd setdest 949.0684128587192 1010.0 36.41071854721302"
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 "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 setdest 949.0684128587192 1010.0 36.41071854721302"
.... So there is still one or more errors for you to correct.
-