Last active
January 5, 2016 08:37
-
-
Save HajimeKawahara/4746a7bdfe9dbb68e417 to your computer and use it in GitHub Desktop.
simple interface of f90->jl for in,out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function call_ioint(ia) | |
ia = Int32[ia] | |
ib = Int32[0] | |
product = ccall((:__testf_MOD_ioint, "testf.so"),Int32,(Ptr{Int32},Ptr{Int32}),ia,ib) | |
println(ia) | |
println(ib) | |
return product | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment