lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thanks. this seems to be what might work for me. I'll give it a try.

On Sat, Sep 15, 2012 at 5:38 AM, Marc Balmer <marc@msys.ch> wrote:
Am 15.09.12 11:27, schrieb Frank Meier-Dörnberg:
> Am 15.09.2012 11:19, schrieb Marc Balmer:
>> Am 15.09.12 05:18, schrieb cynthia powers:
>>> Hi,
>>> can lua interface with fortran?
>>> say I have a bunch of code written in C, a bunch written in c++ and a
>>> bunch in fortran.
>>> I want a wrapper code for all of these. So, I will have a lua-calling C
>>> part, one lua calling c++ and another lua calling fortran.can I have a
>>> lua-calling fortran setup?
>> If you can call FORTRAN code from C, it should be doable.  And I am
>> almost certain you can call FORTRAN code from C (I just never did it
>> myself).
>>
>>
>>
>>
>>
> at least you can call the code from c if you have converted it from
> fortran to c.
> See "f2c" http://www.netlib.org/f2c/
>
> Aah! Found by google: https://github.com/adolgert/FortLua

Actually I found a description on the net:

http://www.xgear.eu/callfortranfromc.html

So it seems straight forward to call Fortran code from Lua.