[Ns-bugs] [Bug 627] Jakes Propagation Loss Model doesn't properly calculate signal loss

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Jul 8 11:55:48 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=627





--- Comment #1 from Trevor Bosaw <bosawt at gmail.com>  2009-07-08 14:55:48 EDT ---
With some testing, it appears that the error is in the DoConstruct() function
placed within the constructor for JakesPropagationLossModel.  DoConstruct()
uses m_nRays and m_nOscillators, neither of which has fully been instantiated
at this point (valgrind shows a memory fault when Do_Construct is in the
constructor, but the memory fault disappears when references to m_nRays and
m_nOscillators are changed to local variables in DoConstruct)

It looks like the rest of the propagation models wait to do calculations until
the DoCalcRxPower function, so perhaps move this code there?


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list