Skip to content

Commit 4affeac

Browse files
committed
up
1 parent 86c82ce commit 4affeac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,7 @@ function SciMLBase.BVProblem{iip, specialize}(sys::AbstractODESystem, u0map = []
545545

546546
# Construct initial conditions
547547
_u0 = prepare_initial_state(u0)
548-
__u0 = if _u0 isa Function
549-
_u0(t_i)
550-
end
548+
__u0 = _u0 isa Function ? _u0(tspan[1]) : _u0
551549

552550
# Define the boundary conditions
553551
bc = if iip

0 commit comments

Comments
 (0)