Leach-c eq_energy=0 condition simulation problem
Hi, LQ members.
I have installed ns-2.27 and ns-2.34 on Ubuntu 9.10.
I have a successful running ns-2 and I found no problems in leach_test simulation.
But, it does dead-lock operation in the leach-c algorithm simulation environment variable change to eq_energy=0.
Firsr time, I have successful simulation results.
It is represented the message in the file "leach-c.out" line 430 to 443 contents below.
The simulator may be dead but remain the process.
So, I have to killed the process then it has gone.
How can I solve the problem?
I have installed ns-2.27 on windows xp, and i want to running leach-c..
first time, i have installed mit.tar.gz..
How can i get source code leach-c? can u help me, please?
Post # 2, @yueling : Welcome to LQ.
Do you mean leach-c.tcl ? It's a text file.
And is part of the package mit.tar.gz
> post #4.
post #3, @knudfl: hello...thank you for reply my post..
i have leach-c.tcl from part of the package mit.tar.gz, but i need leach-c.cc and leach-c.h or leach-c.o..
how can i get it?
AFAIK no files are named leach-c.cc, leach-c.h
( Or leach.cc, leach.h ).
The name "leach-c.tcl" is a random name for a tcl file :
A tcl file is something you write as pure text.
There is no source code for a text file.
if no files named leach-c.cc or leach-c.h , can i running leach-c.tcl without it files?
thank you :)
Post # 6
Files.cc and files.h are used, when you run './install'
and / or 'make' : To build the binary 'ns'. That's it.
No .cc or .h files are required ever again !
Not sure that just 'ns leach-c.tcl' will do anything.
Most of the files in mit/** are probably used in connection with other tcl files.
Like the simulation example command, you can read in leach_test, lines 37..51
okay, i see.. i think if i want to begin simulation about leach-c, i must get files.cc and files.h before..
so i can use the other files in mit to make simulation, right?
your post is very helpful =)
how to compile other files for energy,node setting, etc in mit using leach-c.tcl?
Not much to find about using the "mit files" : Google .. ns2 leach simulations ..
Have you read the two "long LEACH threads" ?
|All times are GMT -5. The time now is 05:27 PM.|