I think you used a variable "Node_(26)" in your tcl script but it has not been 
created yet.
Look into your tcl script  at line 332.  


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <ns-users@ISI.EDU>
Sent: Tuesday, May 16, 2006 5:55 AM
Subject: [ns] no such element in array


> 
> Hi,
> 
> I am trying to do a wired-wireless simulation and when trying to run the
> simulation I get these weird errors:
> 
> num_nodes is set 2
> INITIALIZE THE LIST xListHead
> can't read "Node_(26)": no such element in array
>    while executing
> "return $Node_($id)"
>    (procedure "_o3" line 3)
>    (Simulator get-node-by-id line 3)
>    invoked from within
> "$self get-node-by-id [lindex $L 1]"
>    (procedure "_o3" line 15)
>    (Simulator compute-hier-routes line 15)
>    invoked from within
> "$self compute-hier-routes "
>    invoked from within
> "if [Simulator hier-addr?] {
> $self compute-hier-routes
> } else {
> $self compute-flat-routes
> }"
>    (procedure "_o3" line 2)
>    (Simulator compute-routes line 2)
>    invoked from within
> "[Simulator instance] compute-routes"
>    (procedure "Agent/rtProto/Static" line 2)
>    (Agent/rtProto/Static init-all line 2)
>    invoked from within
> "Agent/rtProto/Static init-all"
>    invoked from within
> "if [info exists rtprotos_] {
> foreach proto [array names rtprotos_] {
> eval Agent/rtProto/$proto init-all $rtprotos_($proto)
> }
> } else {
> Agent/rtProto/St..."
>    (procedure "_o959" line 3)
>    (RouteLogic configure line 3)
>    invoked from within
> "[$self get-routelogic] configure"
>    (procedure "_o3" line 5)
>    (Simulator run line 5)
>    invoked from within
> "$ns run"
>    (file "simulation.tcl" line 332)
> 
> I don't have a Node array, my node array is called n. It appears this is a
> internal problem in ns with the wired-wireless. If anyone could help me
> with this, it would be appreciated.
>

Reply via email to