# Weird behavior calling FORTRAN function

**URL:** <https://discourse.julialang.org/t/weird-behavior-calling-fortran-function/43764>\
**Category:** New to Julia\
**Tags:** fortran\
**Created:** [July 27, 2020, 2:55pm UTC](https://discourse.julialang.org/t/weird-behavior-calling-fortran-function/43764 "2020-07-27T14:55:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![simonbyrne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonbyrne/32/19_2.png) [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Post date:** [July 27, 2020, 4:01pm UTC](https://discourse.julialang.org/t/weird-behavior-calling-fortran-function/43764/4 "2020-07-27T16:01:56Z")

</div>

> [@jmert](#):
>
> I think all of your arrays should be passed to Fortran with a `Vector{Float64}` signature, not `Ref{Float64}` .

No, they should be `Ref` (or `Ptr`, which is equivalent), see [Calling fortran function - #8 by simonbyrne](https://discourse.julialang.org/t/calling-fortran-function/2288/8).

---

_[View the full topic](https://discourse.julialang.org/t/weird-behavior-calling-fortran-function/43764)._
