diff --git a/src/ODE.jl b/src/ODE.jl index e7f5b7825..26478da5f 100644 --- a/src/ODE.jl +++ b/src/ODE.jl @@ -232,7 +232,7 @@ function reduce_ode_mod_p(ode::ODE{<:MPolyRingElem{Nemo.QQFieldElem}}, p::Intege new_y = map(y -> switch_ring(y, new_ring), ode.y_vars) new_x_eqs = Dict{new_type, ExtendedFraction{new_type}}() new_y_eqs = Dict{new_type, ExtendedFraction{new_type}}() - for (old, new) in Dict(ode.x_equations => new_x_eqs, ode.y_equations => new_y_eqs) + for (old, new) in ((ode.x_equations, new_x_eqs), (ode.y_equations, new_y_eqs)) for (v, f) in old new_v = switch_ring(v, new_ring) new[new_v] = _reduce_mod_p(f, p)