We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5f62d commit 35d8ddcCopy full SHA for 35d8ddc
src/Fields/fieldvector.jl
@@ -282,5 +282,5 @@ ClimaComms.array_type(x::FieldVector) = _array_type(x)
282
283
@inline _array_type(x::FieldVector, pns::Tuple) = promote_type(
284
_array_type(getproperty(x, first(pns))),
285
- _array_type(x, Base.tail(pns))...,
+ _array_type(x, Base.tail(pns)),
286
)
test/Fields/field.jl
@@ -164,6 +164,8 @@ end
164
xcenters = Fields.coordinate_field(space).x
165
y = Fields.FieldVector(x = xcenters)
166
@test ClimaComms.array_type(y) == Array
167
+ y = Fields.FieldVector(x = xcenters, y = xcenters)
168
+ @test ClimaComms.array_type(y) == Array
169
end
170
171
@testset "FieldVector basetype replacement and deepcopy" begin
0 commit comments