8000 Runtime error: Attemp to use the value "250m" as a dimensionless number · Issue #1335 · omnetpp/omnetpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Runtime error: Attemp to use the value "250m" as a dimensionless number #1335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wtswkz opened this issue Mar 20, 2025 · 1 comment
Open
8000 Milestone

Comments

@wtswkz
Copy link
wtswkz commented Mar 20, 2025

When I try to run the osg-earth sample, I encountered the problem as shown in the following picture.
Image

This error is throwed from a function called doubleValue in cvalue.cc. The function call trace is as follows:
Image

It seems to be not allowed to assign a value that has unit to a dimensionless number.
Image

I want to know if this is reasonable and how to solve this problem.

@avarga
Copy link
Contributor
avarga commented Apr 23, 2025

Let me reformulate the issue you seem to be having.

  1. you have a NED parameter or parameters that have @unit, say double x @unit(m) and double y @unit(m), and
  2. you want to use those values in the display string, e.g. like @display("p=$x,$y");, and
  3. you CANNOT, because that causes the error shown above.

@rhornig rhornig added this to the 6.x milestone May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0