I went with Ptr{Float64} and I don't get the deprecation anymore so it
seems to work fine. Thank you!
On Wednesday, April 22, 2015 at 5:51:01 PM UTC+2, Jameson wrote:
>
> Ptr{Vector{Float64}} is a weird type to pass to Fortran. Did you mean
> Ptr{Float64} perhaps?
>
> On Wed, Apr 22, 2015 at 11:40 AM Kristoffer Carlsson <[email protected]
> <javascript:>> wrote:
>
>> Hello everyone,
>>
>> I call a fortran function in a way similar to this:
>>
>> ccall(fortran_func, Void, (Ref{Int}, Ptr{Vector{Float64}}), 5, para)
>>
>> I then get the following deprecation warning each time I call it:
>>
>> WARNING: convert(::Type{Ptr}, ::Array{Float64,1}) methods should be
>> converted to be methods of unsafe_convert
>>
>> This deprecation warning basically takes all the time in my analysis.
>> I read this: https://github.com/JuliaLang/julia/issues/10437 but I am
>> not sure what I actually need to do to make it go away.
>> Running juilia --depwarn=no does not help.
>>
>> Thanks in advance,
>>
>> // Kristoffer Carlsson
>>
>