You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of @constants in System under 10.2 throws mtkcompile error. Setting the same value as a parameter works as expected. @constants works fine under v9.80.5.
Minimal Reproducible Example 👇
@componentfunctionTestSys(;name, a=1.0)
pars =@parameters a=a # c=π # <--- setting c as param works as expected
vars =@variablesx(t)
@constants c = π # having c as constant no longer works (did under 9v9.80.5 and below)
eqs = [D(x) ~ a*x + c] ]
returnODESystem(eqs,t,vars,pars; name)
end@named sys0 =TestSys()
sys =mtkcompile(sys0)
(## edited to remove the unnecessary stack & environment details)