Skip to content

Commit 5c96495

Browse files
committed
reduce some more allocations
1 parent ffb190e commit 5c96495

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/equations/svaerd_kalisch_1d.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ function rhs!(du_ode, u_ode, t, mesh, equations::SvaerdKalischEquations1D,
241241

242242
# split form
243243
@timeit timer() "dv hyperbolic" begin
244-
dv[:] = -(0.5 * (D1_central * (hv .* v) + hv .* D1v - v .* (D1_central * hv)) +
245-
equations.gravity * h .* D1eta +
246-
0.5 * (vD1y - D1vy - yD1v) -
247-
0.5 * D1_central * (gamma_hat .* (solver.D2 * v)) -
244+
dv[:] = -(0.5 * (D1_central * (hv .* v) .+ hv .* D1v .- v .* (D1_central * hv)) .+
245+
equations.gravity * h .* D1eta .+
246+
0.5 * (vD1y .- D1vy .- yD1v) .-
247+
0.5 * D1_central * (gamma_hat .* (solver.D2 * v)) .-
248248
0.5 * solver.D2 * (gamma_hat .* D1v))
249249
end
250250

0 commit comments

Comments
 (0)