From be252ee306ed2f2a15d1fc618e496af7f5e100aa Mon Sep 17 00:00:00 2001 From: alemelis Date: Thu, 11 Apr 2024 09:53:08 +0100 Subject: [PATCH] return Nothing --- src/solver.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/solver.jl b/src/solver.jl index 089aebb..cfed137 100644 --- a/src/solver.jl +++ b/src/solver.jl @@ -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) @@ -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