Looks like like 5 uses the old syntax:

flag = Sundials.CVodeSetUserData(mem, {f,r,d,p})

Try:

flag = Sundials.CVodeSetUserData(mem, [f,r,d,p])


On Tuesday, 23 August 2016 14:06:24 UTC+1, Simon Frost wrote:
>
> Thanks for the info; it still isn't clear to me how the (generic) call to 
> this function should be changed:
>
> function cvode{f,r,T}(::Type{f},::Type{r},d::Array{Int64},p::Vector{T}, y0
> ::Vector{Float64}, t::Vector{Float64}; reltol::Float64=1e-4, abstol
> ::Float64=1e-6)
>
> (from https://github.com/sdwfrost/PDMP.jl/blob/master/src/cvode.jl)
>
> On Monday, August 22, 2016 at 10:19:14 AM UTC+1, Mauro wrote:
>>
>> It used to mean Any[], but not anymore (so `Any[]` is the new syntax). 
>> It was still usable in 0.4 with a deprecation warning, now in 0.5 an 
>> error is thrown.  It will get a new meaning in the 0.6 release, but it 
>> is not decided for what yet. See e.g.: 
>> https://github.com/JuliaLang/julia/issues/8470 
>>
>> On Mon, 2016-08-22 at 11:13, Simon Frost <[email protected]> wrote: 
>> > Dear All, 
>> > 
>> > Apologies if this is mentioned somewhere, but I couldn't find the 
>> answer in 
>> > various searches. What does '{ } vector syntax is discontinued' mean, 
>> and 
>> > what is the new syntax? 
>> > 
>> > Best 
>> > Simon 
>>
>

Reply via email to