lua-users home
lua-l archive

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


Am 15.09.12 20:33, schrieb cynthia powers:
> Thanks. but I dont want to convert fortran to C.

I did not suggest that.

> I want a master script in lua, which calls code written in fortran, c 
> and c++, gets results from each component, and does something with the
> result.

That is what I suggested.

To call FORTRAN from Lua, a small C wrapper could be used, see the link
I posted.

> 
> 
> 
> On Sat, Sep 15, 2012 at 5:19 AM, Marc Balmer <marc@msys.ch
> <mailto:marc@msys.ch>> wrote:
> 
>     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).
> 
> 
> 
>