ThummeTo / FMI.jl

FMI.jl is a free-to-use software library for the Julia programming language which integrates FMI (fmi-standard.org): load or create, parameterize, differentiate and simulate FMUs seamlessly inside the Julia programming language!
MIT License
86 stars 24 forks source link

example inputs.ipynb doesn't run with v0.13.0 #205

Closed juguma closed 11 months ago

juguma commented 12 months ago

examples/src/inputs.ipynb doesn't run with v0.13.0, since input function extForce_t(t) doesn't match the proposed input function structure (at least that's what the error says)...

ERROR: AssertionError: The given input function does not fit the needed input function pattern for FMUs, which are: 
- `inputFunction!(t::fmi2Real, u::AbstractArray{fmi2Real})`
- `inputFunction!(comp::FMU2Component, t::fmi2Real, u::AbstractArray{fmi2Real})`
- `inputFunction!(comp::FMU2Component, x::Union{AbstractArray{fmi2Real,1}, Nothing}, u::AbstractArray{fmi2Real})`
- `inputFunction!(x::Union{AbstractArray{fmi2Real,1}, Nothing}, t::fmi2Real, u::AbstractArray{fmi2Real})`
- `inputFunction!(comp::FMU2Component, x::Union{AbstractArray{fmi2Real,1}, Nothing}, t::fmi2Real, u::AbstractArray{fmi2Real})`
ThummeTo commented 12 months ago

Correct, we are currently on restructering the documentation, some of the other examples might fail as well.