Skip to content

Commit

Permalink
Need ::AbstractGrid to avoid dispatch ambiguity
Browse files Browse the repository at this point in the history
Former-commit-id: 7a765f2
  • Loading branch information
ali-ramadhan committed Nov 2, 2019
1 parent 4af44ba commit fe555ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TurbulenceClosures/closure_tuples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

for stress_div in (:∂ⱼ_2ν_Σ₁ⱼ, :∂ⱼ_2ν_Σ₂ⱼ, :∂ⱼ_2ν_Σ₃ⱼ)
@eval begin
@inline $stress_div(i, j, k, grid, closures::Tuple{C1, C2}, U, Ks) where {C1, C2} = (
@inline $stress_div(i, j, k, grid::AbstractGrid, closures::Tuple{C1, C2}, U, Ks) where {C1, C2} = (
$stress_div(i, j, k, grid, closures[1], U, Ks[1])
+ $stress_div(i, j, k, grid, closures[2], U, Ks[2]))
end
end

# Tracer flux divergences

@inline ∇_κ_∇c(i, j, k, grid, closures::Tuple{C1, C2}, c, iᶜ, Ks, C, buoyancy) where {C1, C2} = (
@inline ∇_κ_∇c(i, j, k, grid::AbstractGrid, closures::Tuple{C1, C2}, c, iᶜ, Ks, C, buoyancy) where {C1, C2} = (
∇_κ_∇c(i, j, k, grid, closures[1], c, iᶜ, Ks[1], C, buoyancy)
+ ∇_κ_∇c(i, j, k, grid, closures[2], c, iᶜ, Ks[2], C, buoyancy))

Expand Down

0 comments on commit fe555ef

Please sign in to comment.