Fortran

Hi,Can I use JNI for Java - Fortran interoperation?Do you know other approaches?
[101 byte] By [a_Jdeva] at [2007-10-3 1:44:42]
# 1
Yes.Follow the easy steps of this page: [url http://www.csharp.com/javacfort.html]Calling FORTRAN and C from Java[/url].In a nutshell you do:Java --> C Wrapper --> Fortran routinesRegards
jfbrierea at 2007-7-14 18:42:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Thanks,This information is really useful, although I wondered can I somehow skip the C part.Best regards
a_Jdeva at 2007-7-14 18:42:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Hi,You can give a try to JNative but I doubt it will work with Fortran so easy.--Marc ( http://jnative.sf.net)
mdentya at 2007-7-14 18:42:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
> can I somehow skip the C part.May I ask why?
jfbrierea at 2007-7-14 18:42:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5
> May I ask why?...because of the too long chain of function calls -- >Don't you think this might cause performance problems? I am not sure yet.
a_Jdeva at 2007-7-14 18:42:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 6

> > May I ask why?

>

> ...because of the too long chain of function calls --

> >Don't you think this might cause performance

> problems? I am not sure yet.

Not really an issue here for most of the usage scenarios I would think.

Of course you'll have to decide yourself but I think the best way would be for you to test it out and see if it causes an important performance hit (which I doubt).

Regards

jfbrierea at 2007-7-14 18:42:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 7
jfbriere and mdenty, thanks for your replies. I'm working on your advice.Best regards
a_Jdeva at 2007-7-14 18:42:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...