Skip to content

FMU implementation does not use platform types #658

@PTaeuberDS

Description

@PTaeuberDS

The implementation of the FMI functions does not use the base types defined in fmi3PlatformTypes.h.

E.g.:
bool instead of fmi3Boolean in setBoolean(ModelInstance* comp, ValueReference vr, const bool values[], size_t nValues, size_t* index).

If an importer uses the source code of the FMU and defines the platform types slightly differently (e.g., typedef unsigned char fmi3Boolean;), some compilers (e.g. GCC 14.2) report an error due to incompatible pointer types.

This could be avoided by using the FMI types (or proper casts) in the FMU.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions