我制作了一个.tcl文件来模拟基于闲聊的Ad Hoc路由。当我尝试使用NS 2.35运行它时,我收到以下错误:
xgridsz=, ygridsz=
Sim.: utime/stime: 67 10 stack/heap: -4192 4591616
num_nodes is set 0
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
couldn't read file "": no such file or directory
while executing
"source.orig {}"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $val(cp)"
(file "simAODVG.tcl" line 155)
我的tcl文件的链接如下:
https://drive.google.com/file/d/0B1OEPsG0ILELSHhMQzZQdW5STW8/view?usp=sharing
我将如何解决这个问题?
答案 0 :(得分:0)
第155行,""
:
无法读取文件
""
:没有此类文件或目录
答案:""
在第18行定义:set val(cp) [lindex $argv 1]
......而argv 1
似乎不在任何地方定义?