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

Functions

 main ()

Variables

dict TRANSFORMATIONS
str OPTS_ENV = 'PYFT_OPTS'

Detailed Description

Transformation of a PHYEX source file by pyfortool, executed at build time
(see the top-level CMakeLists.txt, PHYEX_TRANSFORMATION option):
    phyex_transform.py --transformation <name> [--pyfortool <exe>] <input> <output>

The new source code is generated by pyfortool with arguments depending on the
transformation, complemented by '--optsByEnv PYFT_OPTS' if the PYFT_OPTS
environment variable is not empty. It is written in a temporary file which is
renamed into <output> when the transformation succeeds.

The list of available transformations is printed with --list.

Function Documentation

◆ main()

phyex_transform.main ( )

Definition at line 34 of file phyex_transform.py.

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

Variable Documentation

◆ OPTS_ENV

str phyex_transform.OPTS_ENV = 'PYFT_OPTS'

Definition at line 31 of file phyex_transform.py.

◆ TRANSFORMATIONS

dict phyex_transform.TRANSFORMATIONS
Initial value:
1= {
2 'IAL': ['--wrapH', '--shugradTransfo', '--mnhExpand', '--removeACC', '--splitLongLines'],
3 # IAL without the transformation of shuman/gradient functions into subroutine calls
4 'IAL_NOSHUGRAD': ['--wrapH', '--mnhExpand', '--removeACC', '--splitLongLines'],
5 # IAL without the expansion of the mnh_expand directives (code kept in array syntax)
6 'IAL_NOEXPAND': ['--wrapH', '--shugradTransfo', '--removeACC', '--splitLongLines'],
7}

Definition at line 22 of file phyex_transform.py.