geninterface.pl

A Script that convert <murge.h> into a C to Fortran interface.

Usage

./geninterface.pl -f murge.h
   converts the file murge.h into a fortran header.
    -h          Shows this help

Authors

Pascal Jacq.
Xavier Lacostelac.nosp@m.oste@labr.nosp@m.i.fr
Summary
geninterface.plA Script that convert <murge.h> into a C to Fortran interface.
Variables
realKind of the reals/complex
intsKind of the INTS
intlKind of the INTL
complexIndicate if COEFs are complex or real
fichierPath to the <murge.h> file
optsOptions given to the script
Functions
UsagePrints usage.
getTypePtrNamesRetrieve from the arguments list, the list of arguments names, with added ierror, separated with comas.
ConvertMain function.

Variables

real

my $real

Kind of the reals/complex

ints

my $ints

Kind of the INTS

intl

my $intl

Kind of the INTL

complex

my $complex

Indicate if COEFs are complex or real

fichier

my $fichier

Path to the <murge.h> file

opts

my %opts

Options given to the script

Functions

Usage

sub Usage

Prints usage.

getTypePtrNames

sub getTypePtrNames # ($chaine)

Retrieve from the arguments list, the list of arguments names, with added ierror, separated with comas.

Also build the list of arguments, as pointers, the list of arguments names preceded by a star and the name of the string if there is one.

Parameters

chaineString containing the argument list.

Returns

The four builded strings : arguments names, pointers, arguments star prefixed, string name.

Convert

sub Convert

Main function.

Converts the header <murge.h> file into a C to Fortran interface.

my $real
Kind of the reals/complex
my $ints
Kind of the INTS
my $intl
Kind of the INTL
my $complex
Indicate if COEFs are complex or real
my $fichier
Path to the murge.h file
my %opts
Options given to the script
sub Usage
Prints usage.
sub getTypePtrNames # ($chaine)
Retrieve from the arguments list, the list of arguments names, with added ierror, separated with comas.
sub Convert
Main function.
Close