[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] calcdest doesn't match god
Vint/ns uses nam instead of ad-hockey.
In Vint/ns, nodes start with id 0 while cmu/ns starts with id 1.
-Ya
On Mon, 22 Oct 2001, Liong Yin-Ling (NRC/Boston) wrote:
> Hi,
>
> I used ad-hockey to create a scenarios and calcdest to get the god
> information. However, the god information created starts from node 1 to
> node N instead of node 0 to node N-1. And this creats a violation in
> god.cc when the file call "set god_ [create-god $val(nn)]"
>
> int God::command(int, const char *const *): Assertion 'j>=0 && j <
> num_nodes' failed.
>
> I know this could be fixed. But I just feel strange that the calcdest
> does not match with the internal range of ns. I would like to know if I
> am missing anything here.
>
> Also, when I used the scenario file created from ad-hockey (without
> calcdest) directly, the simulation still run and results seem fine. Can
> ns generate the god information on the fly right now?
>
> Thanks,
> Venus
>
> ----------
> Yin-Ling (Venus) Liong
> Nokia Research Center (NRC-Boston)
> [email protected]
> 781-993-3778(O)
> 781-929-3433(M)
>