Skip to content

Commit db8d15f

Browse files
committed
remove unrelated method ambiguity
1 parent 786a85c commit db8d15f

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/Geometry/axistensors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ for I in [(), (1,), (2,), (3,), (1, 2), (1, 3), (2, 3), (1, 2, 3)]
338338

339339
strUVW = isempty(I) ? "Null" : join(map(i -> [:U, :V, :W][i], I))
340340
@eval begin
341-
const $(Symbol(:Covariant, strI, :Axis)) = CovariantAxis{($I)}
341+
const $(Symbol(:Covariant, strI, :Axis)) = CovariantAxis{$I}
342342
const $(Symbol(:Covariant, strI, :Vector)){T} =
343343
CovariantVector{T, $I, SVector{$N, T}}
344344

src/to_device.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ This means that `out === x` will not in general be satisfied.
2020
"""
2121
function to_device(
2222
device::ClimaComms.AbstractDevice,
23-
x::Union{
24-
DataLayouts.AbstractData,
25-
Spaces.AbstractSpace,
26-
Fields.Field,
27-
Fields.FieldVector,
28-
},
23+
x,
2924
)
3025
return Adapt.adapt(ClimaComms.array_type(device), x)
3126
end

test/aqua.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using Aqua
2020
# then please lower the limit based on the new number of ambiguities.
2121
# We're trying to drive this number down to zero to reduce latency.
2222
# Uncomment for debugging:
23-
n_existing_ambiguities = 26
23+
n_existing_ambiguities = 25
2424
if !(length(ambs) n_existing_ambiguities)
2525
for method_ambiguity in ambs
2626
@show method_ambiguity

0 commit comments

Comments
 (0)