[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fortran from octave
From: |
Mike Miller |
Subject: |
Re: fortran from octave |
Date: |
Fri, 25 Oct 2019 10:23:31 -0700 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Fri, Oct 25, 2019 at 18:14:32 +0200, AURORA GONZALEZ VIDAL wrote:
> thank you for your answer. In such appendix, they indicate to change stop
> with xstop. Appart from that, there is no other indication given that I only
> have a .f file, do you know if I need to create a C wrapper as it is written
> in the appendix?
Yes, Octave does not have any capability to call a bare Fortran function
directly, you will need to create a C++ wrapper to pass arguments and
return values between Octave and Fortran.
For an example of such a C++ wrapper to call a pretty complicated
Fortran function, take a look at
http://hg.code.sf.net/p/octave/control/file/ddb727dc0c90/src/sl_ab01od.cc
--
mike
signature.asc
Description: PGP signature