It's actually a zero-dimensional array that holds only one element. I'm not sure why it's getting written to, but then again, I have no idea how one correctly writes through a pointer in Fortran, so I can't really say what I'd expect that code to do.
On Wed, Feb 11, 2015 at 4:15 PM, Dawid Crivelli <[email protected]> wrote: > > Try initializing the c with some value, because right now you are creating > an empty array with no storage allocated. > >> a = 100.0 >> b = 10.0 >> c = [0.0] # or Array(Float64,1) >> ppmm = ccall((:multiply_, "/home/juser/ManUTD/fortran_try/fsbrtn"), >> Void,(Ptr{Float64},Ptr{Float64},Ptr{Float64}),&a,&b,c) >> println(c) >> >>
