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
Edit: Well, now it's ODESystem that's broken. In another MRE structural_simplify was the issue :D
It seems like threading breaks something in structural_simplify. Doing the loop in MRE without threading works. IIUC this should not happen since everything is local to the function bar
Minimal Reproducible Example
using Catalyst, ModelingToolkit, ThreadPinning
using ModelingToolkit: t_nounits as t, D_nounits as D
pinthreads(:cores)
functionbar()
@parameters σ ρ β
@variablesx(t) y(t) z(t)
eqs = [D(x) ~ σ*(y-x),
D(y) ~ x*(ρ-z)-y,
D(z) ~ x*y - β*z]
@named de =ODESystem(eqs,t,[x,y,z],[σ,ρ,β],tspan=(0, 1000.0))
odess =structural_simplify(de)
end
Threads.@threads:staticfor i in1:1000bar()
end
Edit: Well, now it's ODESystem that's broken. In another MRE
structural_simplify
was the issue :DIt seems like threading breaks something in
structural_simplify
. Doing the loop in MRE without threading works. IIUC this should not happen since everything is local to the functionbar
Minimal Reproducible Example
Error & Stacktrace
Environment:
Output of `using Pkg; Pkg.status()`
Output of `using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)`
Output of `versioninfo()`
The text was updated successfully, but these errors were encountered: