Skip to content

enhance CRML2Modelica library #60

Description

@audrey-jardin

@lenaRB : I reviewed code generated by the compiler for the CountInside example.

One first remark: there is one warning for the CRMLClock_build of the CRML2Modelica library.
This is due to the equation below comparing a Real with an Integer:

clock.out = Functions.cvBooleanToBoolean4(time==clock.ticks[clock.counter]);

A better option could be this one (eps being a small number):
clock.out = Functions.cvBooleanToBoolean4(abs(time - clock.ticks[clock.counter]) < eps);

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions