Skip to content

Commit 6a89f87

Browse files
drop a @inline
1 parent 86a1fce commit 6a89f87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cfvariable.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ end
370370
CFtransform(data,fv,scale_factor,add_offset,time_origin,time_factor,maskingvalue,DTcast)
371371

372372
# in-place version
373-
@inline function CFtransformdata!(out,data::AbstractArray{T,N},fv,scale_factor,add_offset,time_origin,time_factor,maskingvalue) where {T,N}
373+
function CFtransformdata!(out,data::AbstractArray{T,N},fv,scale_factor,add_offset,time_origin,time_factor,maskingvalue) where {T,N}
374374
DTcast = eltype(out)
375375
@inbounds @simd for i in eachindex(data)
376376
out[i] = CFtransform(data[i],fv,scale_factor,add_offset,time_origin,time_factor,maskingvalue,DTcast)
@@ -387,6 +387,8 @@ end
387387
# for arrays when the CF transformation does not change the element type
388388
# to avoid the allocation of a new array
389389
@inline function CFtransformdata(data::AbstractArray{T,N},fv,scale_factor,add_offset,time_origin,time_factor,maskingvalue,::Type{T}) where {T,N}
390+
@show typeof(data)
391+
390392
return CFtransformdata!(data,data,fv,scale_factor,add_offset,time_origin,time_factor,maskingvalue)
391393
end
392394

0 commit comments

Comments
 (0)