Hi. I was trying to use the shadowing radio propagation model, but am getting a
floating point exception. I got this both when running on a windows box
(cygwin) and on an AIX box. gdb said "Program received signal SIGFPE,
Arithmetic exception", and when I use the same code with FreeSpace or TwoRay I
have no problem. Has anyone else had this issue? How do you fix it? I'm
attaching some code; if more code is necessary to look at, please let me know
and I'll add the whole file. Thanks in advance.
Theresa Nelson - [EMAIL PROTECTED]
M.S. Computer Engineering
Networks & Network Security
1330 Torg Hall, IT Security Lab
Virginia Tech
set ns_ [new Simulator]
Propagation/Shadowing set pathlossExp_ 2.0 ;# path loss exponent
Propagation/Shadowing set std_db_ 4.0 ;# shadowing deviation (dB)
Propagation/Shadowing set dist0_ 1.0 ;# reference distance (m)
Propagation/Shadowing set seed_ 13 ;# seed for RNG
$ns_ node-config -propType Propagation/Shadowing
set opt(chan) Channel/WirelessChannel ;# channel type
set opt(prop) Propagation/Shadowing ;# radio-propagation model
set opt(netif) Phy/WirelessPhy ;# network interface type
set opt(mac) Mac/802_11 ;# MAC type
set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type
set opt(ll) LL ;# link layer type
set opt(ant) Antenna/OmniAntenna ;# antenna model
set opt(ifqlen) 50 ;# max packet in ifq
set opt(nn) 50 ;# number of mobilenodes
set opt(adhocRouting) NOAH ;# routing protocol
set opt(cp) "" ;# cp file not used
set opt(sc) "" ;# node movement file.
set opt(x) 600 ;# x coordinate of topology
set opt(y) 400 ;# y coordinate of topology
set opt(seed) 0.0 ;# random seed
set opt(stop) 45 ;# time to stop simulation
set opt(ftp0-start) 0.0
set opt(ftp10-start) 0.0
set opt(ftp20-start) 0.0
set opt(ftp30-start) 0.0
set opt(ftp40-start) 0.0
set num_wired_nodes 39
set num_bs_nodes 18;
...
$ns_ node-config -mobileIP ON \
-adhocRouting $opt(adhocRouting) \
-llType $opt(ll) \
-macType $opt(mac) \
-ifqType $opt(ifq) \
-ifqLen $opt(ifqlen) \
-antType $opt(ant) \
-propType $opt(prop) \
-phyType $opt(netif) \
-channelType $opt(chan) \
-topoInstance $topo \
-wiredRouting ON \
-agentTrace ON \
-routerTrace OFF \
-macTrace OFF