Skip to content

Commit

Permalink
get rid of vector of vector bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye committed Mar 25, 2024
1 parent 787efba commit 5510427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StochSystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Converts a [`StochSystem`](@ref) into [`CoupledODEs`](https://juliadynamics.gith
from DynamicalSystems.jl.
"""
CoupledODEs(sys::StochSystem; diffeq=DynamicalSystemsBase.DEFAULT_DIFFEQ, t0=0.0) =
DynamicalSystemsBase.CoupledODEs(sys.f, SVector{length(sys.u)}(sys.u), [sys.pf]; diffeq=diffeq, t0=t0)
DynamicalSystemsBase.CoupledODEs(sys.f, SVector{length(sys.u)}(sys.u), sys.pf; diffeq=diffeq, t0=t0)

to_cds(sys::StochSystem) = CoupledODEs(sys)

Expand All @@ -69,4 +69,4 @@ Converts a [`CoupledODEs`](https://juliadynamics.github.io/DynamicalSystems.jl/s
system into a [`StochSystem`](@ref).
"""
StochSystem(ds::DynamicalSystemsBase.CoupledODEs, σ=0.0, g=idfunc, pg=nothing, Σ=I(length(get_state(ds))), process="WhiteGauss") =
StochSystem(dynamic_rule(ds), ds.p0, get_state(ds), σ, g, pg, Σ, process)
StochSystem(dynamic_rule(ds), ds.p0, get_state(ds), σ, g, pg, Σ, process)

0 comments on commit 5510427

Please sign in to comment.