Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73037
| From | Michael Welle <mwe012008@gmx.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Interfacing Fortran applications |
| Date | 2014-06-09 17:14 +0200 |
| Organization | MB-NET.NET for Open-News-Network e.V. |
| Message-ID | <rjvg6bxtbk.ln2@news.c0t0d0s0.de> (permalink) |
| References | <a55g6bxjlj.ln2@news.c0t0d0s0.de> <mailman.10908.1402314536.18130.python-list@python.org> <7klg6bxlt8.ln2@news.c0t0d0s0.de> <mailman.10915.1402325777.18130.python-list@python.org> |
Hello, Chris Angelico <rosuav@gmail.com> writes: > On Mon, Jun 9, 2014 at 10:24 PM, Michael Welle <mwe012008@gmx.net> 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 could turn the whole thing into a C-callable > library, although I've no idea how easy it is to do that. (My > experience with FORTRAN - yes, not Fortran, the code was that old - > goes as far as eyeballing some of IBM's DB2 examples and translating > them into REXX. I've never actually used a Fortran compiler.) in the simplest case you can convert the 'main function' to some other function that you call from the Python script. Then you have to implement a mechanism for getting data in and out of the application. The rest depends on the application, implementing a demo is easy ;). Regards hmw -- biff4emacsen - A biff-like tool for (X)Emacs http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html Flood - Your friendly network packet generator http://www.c0t0d0s0.de/flood/flood.html
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Interfacing Fortran applications Michael Welle <mwe012008@gmx.net> - 2014-06-09 09:43 +0200
Re: Interfacing Fortran applications Chris Angelico <rosuav@gmail.com> - 2014-06-09 19:36 +1000
Re: Interfacing Fortran applications Michael Welle <mwe012008@gmx.net> - 2014-06-09 12:30 +0200
Re: Interfacing Fortran applications Sturla Molden <sturla.molden@gmail.com> - 2014-06-09 11:48 +0000
Re: Interfacing Fortran applications Michael Welle <mwe012008@gmx.net> - 2014-06-09 14:24 +0200
Re: Interfacing Fortran applications Chris Angelico <rosuav@gmail.com> - 2014-06-10 00:50 +1000
Re: Interfacing Fortran applications Michael Welle <mwe012008@gmx.net> - 2014-06-09 17:14 +0200
Re: Interfacing Fortran applications Sturla Molden <sturla.molden@gmail.com> - 2014-06-09 22:57 +0200
Re: Interfacing Fortran applications Michael Welle <mwe012008@gmx.net> - 2014-06-10 10:55 +0200
Re: Interfacing Fortran applications alister <alister.nospam.ware@ntlworld.com> - 2014-06-10 10:36 +0000
csiph-web