NTNU-IHB / FMI4cpp

FMI 2.0 implementation written in modern C++.
MIT License
95 stars 35 forks source link

ValueReference is only unique within in a base class #68

Closed markaren closed 4 years ago

markaren commented 5 years ago

I thought a valueReference was a unique identifier to scalarVariable (or a list of scalarVariable that are aliases). But it seems you can have the same valueReference for a integer/real/boolean/string/enumeration.

That means the getByValueReference function is wrong, as it will return the first occurence.

markaren commented 4 years ago

Seems I never implemented a function for getting a scalar_variable using a value_reference so this is a non-issue.