@@ -121,10 +121,10 @@ function validate_fcts(NT, f!, h!)
121121 " f!(x::Vector{$(NT) }, u::Vector{$(NT) }, d::Vector{$(NT) }) or " *
122122 " f!(ẋ::Vector{$(NT) }, x::Vector{$(NT) }, u::Vector{$(NT) }, d::Vector{$(NT) })" )
123123 end
124- hargsvalid = hasmethod (h!,Tuple{Vector{NT}, Vector{NT}})
124+ hargsvalid = hasmethod (h!, Tuple{Vector{NT}, Vector{NT}, Vector{NT}})
125125 if ! hargsvalid
126126 error (" output function has no method with type signature " *
127- " h( x::Vector{$(NT) }, d::Vector{$(NT) })" )
127+ " h!(y::Vector{ $(NT) }, x::Vector{$(NT) }, d::Vector{$(NT) })" )
128128 end
129129 return iscontinuous
130130end
@@ -136,7 +136,7 @@ steadystate!(::SimModel, _ , _ ) = nothing
136136" Call ``\\ mathbf{f!(x, u, d)}`` with `model.f!` function for [`NonLinModel`](@ref)."
137137f! (x, model:: NonLinModel , u, d) = model. f! (x, u, d)
138138
139- " Call ``\\ mathbf{h( x, d)}`` with `model.h` function for [`NonLinModel`](@ref)."
140- h ( model:: NonLinModel , x, d) = model. h! (x, d)
139+ " Call ``\\ mathbf{h!(y, x, d)}`` with `model.h` function for [`NonLinModel`](@ref)."
140+ h! (y, model:: NonLinModel , x, d) = model. h! (y, x, d)
141141
142142typestr (model:: NonLinModel ) = " nonlinear"
0 commit comments