NS2: Help me: Leach on Ubuntu 10.04
When I used code to make file :
Quote:
ns ns-2.34/tcl/ex/wireless.tcl -rp leach -x 1000 -y 1000 -nn 70 -stop 360 -eq_energy 1 -init_energy 2 -filename leach_file -dirname leach_dir -topo ns-2.34/mit/uAMPS/sims/100nodes.txt -num_clusters 5 -bs_x 50 -bs_y 50 leach_dir/leach_file.err leach_dir/leach_file.out &
|
It's error with:
Quote:
ns: _o1226 advertiseClusterHead: can't read "opt(max_dist)": no such element in array
while executing
"$self send $mac_dst $link_dst $ADV_CH $msg $datasize $opt(max_dist) $code_"
(procedure "_o1226" line 15)
(Application/LEACH advertiseClusterHead line 15)
invoked from within
"_o1226 advertiseClusterHead"
|
Help me now! The more specific is better.
Last edited by minhtri282; 07-10-2013 at 05:01 PM.
|