You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: LoadError: MethodError: no method matching unsafe_convert(::Type{Ptr{Float64}}, ::Float64)
Closest candidates are:
unsafe_convert(::Type{T}, ::T) where T<:Ptr at essentials.jl:391
unsafe_convert(::Type{Ptr{T}}, ::Ptr{Tuple{Vararg{T,N}}}) where {N, T} at refpointer.jl:136
unsafe_convert(::Type{P}, ::Ptr) where P<:Ptr at essentials.jl:392
...
Stacktrace:
[1] gsw_nsquared(::Float64, ::Float64, ::Float64, ::Int64, ::Int64, ::Float64, ::Float64) at /Users/guptam/.julia/packages/GibbsSeaWater/vq3GE/src/gen_gswteos10.jl:370
[2] _broadcast_getindex_evalf at ./broadcast.jl:648 [inlined]
[3] _broadcast_getindex at ./broadcast.jl:621 [inlined]
[4] getindex at ./broadcast.jl:575 [inlined]
[5] copy at ./broadcast.jl:876 [inlined]
[6] materialize(::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1},Nothing,typeof(gsw_nsquared),Tuple{Array{Float64,1},Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},Int64,Int64,Float64,Float64}}) at ./broadcast.jl:837
[7] top-level scope at compare_nsquared.jl:137
[8] include(::String) at ./client.jl:457
[9] top-level scope at REPL[14]:1
in expression starting at compare_nsquared.jl:137
Could you advise how I should use gsw_nsquared instead?
Many thanks.
The text was updated successfully, but these errors were encountered:
Hello, I am trying to use gsw_nsquared as follows:
But get the following error:
Could you advise how I should use gsw_nsquared instead?
Many thanks.
The text was updated successfully, but these errors were encountered: