help-octave
[Top][All Lists]
Advanced

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

Re: Fortran in Octave


From: A S Hodel
Subject: Re: Fortran in Octave
Date: Fri, 19 Mar 2004 15:05:25 -0600

I'd suggest that you look in the liboctave directory where Octave calls the LAPACK fortran routines. That will take care of the fortran-specific issues in calling fortran from C++. The rest would be standard .oct file implementation.

If I remember right, you should look for the F77_FUNCTION macro definition.

On Friday, March 19, 2004, at 02:16 PM, Zine Smith wrote:

I am trying to include Tsyganenko's 96 (T96) global
magnetic field model inside of Octave.  The T96 F77
code is available.  I have been through archives of
this list and the documentation, but I'm not finding
much help wrt the syntax for writing the cpp wrapper
for this function.  The signature of the T96 mag model
is

 SUBROUTINE T96_01 (IOPT,PARMOD,PS,X,Y,Z,BX,BY,BZ)

where
     IOPT            = dummy integer which can always
be 0
     PARMOD          = DIMENSION (10)
     PS,X,Y,BX,BY,BZ = float

Can someone please help me.

Thanks
Zine Smith

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



A. S. Hodel Dept. ECE, 200 Broun Hall, Auburn University AL 36849-5201
(334) 844-1854/fax(334) 844-1809, http://www.eng.auburn.edu/users/hodelas , address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]