Fortran: Difference between revisions

Jump to navigation Jump to search
3 bytes removed ,  29 November 2012
no edit summary
(Example of writing F2003 Code linking to Octave)
No edit summary
Line 2: Line 2:
In the example we will load an Octave array from a file in Octave's native ASCII format,
In the example we will load an Octave array from a file in Octave's native ASCII format,
it consists of two steps:
it consists of two steps:
 
- write a C++ function with a C compatible interface and C linkage that reads a variable from an Octave ASCII file
* write a C++ function with a C compatible interface and C linkage that reads a variable from an Octave ASCII file
- write Fortran code using the "iso_c_binding" intrinsic module to call the C++ function
* write Fortran code using the "iso_c_binding" intrinsic module to call the C++ function


=== C++ function ===
=== C++ function ===
349

edits

Navigation menu