OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000901OMNeT++simulation kernelpublic2015-10-12 10:052016-03-16 10:28
ammmar1988 
andras 
normalminoralways
resolvedwon't fix 
x86_64GNU/Linux?
4.6 
5.0rc 
0000901: Error: "Multiplying two quantities with units is not supported."

In chapter 3.5 "Channels" of the OMNeT manual the following example datarate channel is given:

channel DatarateChannel2 extends ned.DatarateChannel
{
    double distance @unit(m);
    delay = this.distance / 200000km * 1s;
}

Actually using this example channel leads to an error:

"Multiplying two quantities with units is not supported."
Use the mentioned example as channel in a simulation and run it.
No tags attached.
Issue History
2015-10-12 10:05ammmar1988New Issue
2015-10-12 10:05ammmar1988Issue generated from: 0000849
2016-03-16 10:28andrasNote Added: 0001183
2016-03-16 10:28andrasStatusnew => resolved
2016-03-16 10:28andrasFixed in Version => 5.0rc
2016-03-16 10:28andrasResolutionopen => won't fix
2016-03-16 10:28andrasAssigned To => andras

Notes
(0001183)
andras   
2016-03-16 10:28   
What you posted is the expected behaviour, i.e. this is actually a feature request. However, the cost of implementation would far outweigh the gain.