Skip to content

Commit

Permalink
Merge pull request #2015 from CliMA/ncc/closure_tuples-patch
Browse files Browse the repository at this point in the history
Fix bug in `TurbulenceClosures`
  • Loading branch information
navidcy committed Oct 14, 2021
2 parents eaf51cc + 95f3fd2 commit a3faff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TurbulenceClosures/closure_tuples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for stress_div in (:∂ⱼ_τ₁ⱼ, :∂ⱼ_τ₂ⱼ, :∂ⱼ_τ₃ⱼ)

@inline $stress_div(i, j, k, grid::AbstractGrid, closures::Tuple, clock, U, Ks, args...) = (
$stress_div(i, j, k, grid, closures[1:2], clock, U, Ks[1:2], args...)
+ $stress_div(i, j, k, grid, closures[3:end], clock, U, K[3:end], args...))
+ $stress_div(i, j, k, grid, closures[3:end], clock, U, Ks[3:end], args...))
end
end

Expand Down

0 comments on commit a3faff7

Please sign in to comment.