diff --git a/src/StochSystem.jl b/src/StochSystem.jl index c0381662..8b6d8a9b 100644 --- a/src/StochSystem.jl +++ b/src/StochSystem.jl @@ -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) @@ -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) \ No newline at end of file +StochSystem(dynamic_rule(ds), ds.p0, get_state(ds), σ, g, pg, Σ, process)