Re: Interfacing Fortran applications

2014-06-10 Thread alister
On Mon, 09 Jun 2014 14:24:07 +0200, Michael Welle wrote: > Hello, > > Sturla Molden writes: > >> Michael Welle wrote: >> >>> I thought about equipping the Fortran application with sockets, so >>> that I can send input data and commands (which is now done via cmd >>> line) and reading output da

Re: Interfacing Fortran applications

2014-06-09 Thread Sturla Molden
On 09/06/14 14:24, Michael Welle wrote: >> If you are to rewrite the Fortran app you can just as well use f2py from >> NumPy. > a rewrite of the application isn't possible. That would require > knowledge about what the used algorithms are, why they are implemented > as they are, that would require

Re: Interfacing Fortran applications

2014-06-09 Thread Chris Angelico
On Mon, Jun 9, 2014 at 10:24 PM, Michael Welle wrote: > I can change everything until after the > initialisation of the application and the output of the results. That, > hopefully, will not break something. Okay. So you should be able to go for the socket approach, fairly easily. Or possibly you

Re: Interfacing Fortran applications

2014-06-09 Thread Sturla Molden
Michael Welle wrote: > I thought about equipping the Fortran application with sockets, so that > I can send input data and commands (which is now done via cmd line) and > reading output data back. Any opinions on this? Best pratices? If you are to rewrite the Fortran app you can just as well u

Re: Interfacing Fortran applications

2014-06-09 Thread Chris Angelico
On Mon, Jun 9, 2014 at 5:43 PM, Michael Welle wrote: > I want to build a Python based user interface for an existing Fortran > application (as everyone wants to do ;)). Lets assume the application is > parametrised via cmdline parameters and it calculates tons of numbers > that have to find their