PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
pybinding Namespace Reference

Classes

class  PybindingError

Functions

 pybinding (fortran_in, scope, fortran_out, python_out, libso, tpfileIsNam=False, Findexing=False)
 main ()

Detailed Description

This script contains a uniq function that reads a FORTRAN file and tries
to create a new FORTRAN SUBROUTINE that can be used to access the
original routine from python through the ctypesForFortran utility.

This function is designed to work with PHYEX codes by recognizing
the name of certain structures. In addition, it performs special
processing for ini_phyex (adding a file name for the namelist and
flushing the listing file).

Function Documentation

◆ main()

pybinding.main ( )

Definition at line 522 of file pybinding.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pybinding()

pybinding.pybinding ( fortran_in,
scope,
fortran_out,
python_out,
libso,
tpfileIsNam = False,
Findexing = False )
:param fortran_in: FORTRAN input file
:param scope: scope to deal with
:param fortran_out: FORTRAN output file
:param python_out: python output file
:param libso: path to the shared lib (relative to the python_out file)
              or list of possible paths
:param tpfileIsNam: True if tpfile is a namelist
:param Findexing: True to keep the same index order as in the FORTRAN subroutine

Definition at line 25 of file pybinding.py.