Skip to content

Commit d3a089a

Browse files
committed
fix: consolidate method
1 parent 11415e4 commit d3a089a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/odesystem.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function ODESystem(deqs::AbstractVector{<:Equation}, iv, dvs, ps;
337337
if length(costs) > 1 && isnothing(consolidate)
338338
error("Must specify a consolidation function for the costs vector.")
339339
elseif isnothing(consolidate)
340-
consolidate(u) = u[1]
340+
consolidate = u -> u[1]
341341
end
342342

343343
assertions = Dict{BasicSymbolic, Any}(unwrap(k) => v for (k, v) in assertions)

0 commit comments

Comments
 (0)