GMLC-TDC / HELICS

Hierarchical Engine for Large-scale Infrastructure Co-Simulation (HELICS)
https://docs.helics.org/en/latest/
BSD 3-Clause "New" or "Revised" License
127 stars 40 forks source link

C API message_t time floating point versus integer #168

Closed jeffdaily closed 6 years ago

jeffdaily commented 6 years ago
/home/username/HELICS/tests/helics/c_interface/FilterTests.cpp(193): error: in "filter_tests/message_filter_function_two_stage/_4": check m2.time == 2.5 has failed [2500000000 != 2.5]

The C API FilterTests.cpp specify the time delay filter using floating point. When the message arrives, its time attribute is 2500000000 but the test is trying to compare it to 2.5.

phlptp commented 6 years ago

This one will be fixed in the next commit, working on a few others found during test execution