|
$op(Lc::Tuple, f::Function, b::AbstractField) = $op((Lc[1](), Lc[2](), Lc[3]()), a, b) |
|
$op(Lc::Tuple, a::AbstractField, f::Function) = $op((Lc[1](), Lc[2](), Lc[3]()), a, b) |
|
|
|
$op(Lc::Tuple, m::GridMetric, b::AbstractField) = $op((Lc[1](), Lc[2](), Lc[3]()), a, b) |
|
$op(Lc::Tuple, a::AbstractField, m::GridMetric) = $op((Lc[1](), Lc[2](), Lc[3]()), a, b) |
All methods refer to
a and
b, but each of them takes only
a or
b as argument, so all methods try to access undefined variables. No clue of what this should be. Introduced by
@simone-silvestri in
#4870.
Detected with JETLS.
Oceananigans.jl/src/AbstractOperations/binary_operations.jl
Lines 130 to 134 in 6fd02a4
All methods refer to
aandb, but each of them takes onlyaorbas argument, so all methods try to access undefined variables. No clue of what this should be. Introduced by @simone-silvestri in #4870.Detected with JETLS.