Skip to content

Commit

Permalink
ensure correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewning committed Apr 12, 2023
1 parent 42a1e55 commit 980672a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unsteady.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ function odesolve(initialize, onestep!, t, xd, xc, p)
@views y0 = initialize(t[1], xd, xc[:, 1], p)

# allocate array
y = zeros(length(y0), length(t))
T = promote_type(eltype(xd), eltype(xc))
y = zeros(T, length(y0), length(t))
@views y[:, 1] .= y0

# step through
Expand Down

0 comments on commit 980672a

Please sign in to comment.