Iguana
Implementation Guardian of Analysis Algorithms
|
C bindings, for Fortran usage. More...
C bindings, for Fortran usage.
The functions in these namespaces are designed to provide bindings for Fortran (and for C). The function names are all lowercase, and end in an underscore, to permit automatic binding to Fortran 77. Visit each namespace page to view the available functions.
To use a function in Fortran, call it as a subroutine, but without the final underscore; use iso_c_binding
data types for the arguments, otherwise you may have subtle runtime problems.
For example, consider the following C function:
To use this in Fortran:
To use these bindings with your Fortran code, link against the installed iguana
libraries.
iguana-example-fortran.f
Namespaces | |
namespace | iguana |
General, top-level namespace for algorithms and infrastructure. For algorithms and bindings, see its sub-namespaces. | |
namespace | iguana::bindings |
General iguana bindings. | |
namespace | iguana::bindings::clas12 |
CLAS12 algorithm action function bindings. | |
namespace | iguana::bindings::physics |
Physics algorithm action function bindings. | |