Skip to content

Commit

Permalink
return Nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
alemelis committed Apr 11, 2024
1 parent 12a4553 commit be252ee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function calculateΔt(n::Network)
Δt*n.Ccfl
end

function solve!(n::Network, dt::Float64, current_time::Float64)
function solve!(n::Network, dt::Float64, current_time::Float64)::Nothing
for edge in edges(n.graph)
s = src(edge)
t = dst(edge)
Expand Down Expand Up @@ -196,9 +196,8 @@ function limiter!(
slopes::Vector{Float64},
)
for i = 2:v.M+2
u = (U[i] - U[i-1]) * v.invDx
@inbounds v.dUA[i] = u
@inbounds v.dUQ[i-1] = u
@inbounds v.dUA[i] = (U[i] - U[i-1]) * v.invDx
@inbounds v.dUQ[i-1] = (U[i] - U[i-1]) * v.invDx
end
superbee!(slopes, v.dUA, v.dUQ, v.halfDx)
end
Expand Down

0 comments on commit be252ee

Please sign in to comment.