Running from fortran but not passing by ref correctly.