|
PyForTool
Python-fortran-tool
|
Functions | |
| task (filename) | |
| mainParallel () | |
| main () | |
| getArgs (parser) | |
| getParserOptions (args) | |
| getDescTree (args, cls=Tree) | |
| updateParser (parser, withInput, withOutput, withXml, withPlotCentralFile, treeIsOptional, nbPar, restrictScope) | |
| updateParserInputsOutputs (parser, withInput, withOutput, withXml) | |
| updateParserFxtran (parser) | |
| updateParserVariables (parser) | |
| updateParserCosmetics (parser) | |
| updateParserApplications (parser) | |
| updateParserOpenACC (parser) | |
| updateParserChecks (parser) | |
| updateParserStatements (parser) | |
| updateParserMisc (parser) | |
| updateParserTree (parser, withPlotCentralFile, treeIsOptional) | |
| updateParserPreprocessor (parser) | |
| applyTransfo (pft, arg, args, plotCentralFile) | |
| applyTransfoFileName (pft, arg) | |
| applyTransfoVariables (pft, arg, args, simplify, parserOptions, stopScopes) | |
| applyTransfoApplications (pft, arg, args, simplify, parserOptions, stopScopes) | |
| applyTransfoOpenACC (pft, arg, args, stopScopes) | |
| applyTransfoCosmetics (pft, arg, args) | |
| applyTransfoChecks (pft, arg, args) | |
| applyTransfoStatements (pft, arg, args, simplify) | |
| applyTransfoMisc (pft, arg, args, simplify) | |
| applyTransfoTree (pft, arg, args, plotCentralFile) | |
| applyTransfoPreprocessor (pft, arg, args) | |
Variables | |
| tuple | ARG_UPDATE_CNT |
This module contains functions usefull to build scripts around the pyfortool library
| pyfortool.scripting.applyTransfo | ( | pft, | |
| arg, | |||
| args, | |||
| plotCentralFile | |||
| ) |
Apply transformation on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments :param plotCentralFile: central file for plots
Definition at line 678 of file scripting.py.


| pyfortool.scripting.applyTransfoApplications | ( | pft, | |
| arg, | |||
| args, | |||
| simplify, | |||
| parserOptions, | |||
| stopScopes | |||
| ) |
Apply applications transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments :param simplify: kwargs to simplify :param parserOptions: fxtran parser options :param stopScopes: upper limit in call tree for some transformations
Definition at line 784 of file scripting.py.

| pyfortool.scripting.applyTransfoChecks | ( | pft, | |
| arg, | |||
| args | |||
| ) |
Apply checks transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments
Definition at line 919 of file scripting.py.

| pyfortool.scripting.applyTransfoCosmetics | ( | pft, | |
| arg, | |||
| args | |||
| ) |
Apply cosmetics transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments
Definition at line 874 of file scripting.py.

| pyfortool.scripting.applyTransfoFileName | ( | pft, | |
| arg | |||
| ) |
Apply file name transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments
Definition at line 721 of file scripting.py.

| pyfortool.scripting.applyTransfoMisc | ( | pft, | |
| arg, | |||
| args, | |||
| simplify | |||
| ) |
Apply misc transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments :param simplify: kwargs to simplify
Definition at line 957 of file scripting.py.

| pyfortool.scripting.applyTransfoOpenACC | ( | pft, | |
| arg, | |||
| args, | |||
| stopScopes | |||
| ) |
Apply openACC transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments :param stopScopes: upper limit in call tree for some transformations
Definition at line 852 of file scripting.py.

| pyfortool.scripting.applyTransfoPreprocessor | ( | pft, | |
| arg, | |||
| args | |||
| ) |
Apply preprocessor transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments
Definition at line 987 of file scripting.py.

| pyfortool.scripting.applyTransfoStatements | ( | pft, | |
| arg, | |||
| args, | |||
| simplify | |||
| ) |
Apply statements transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments :param simplify: kwargs to simplify
Definition at line 940 of file scripting.py.

| pyfortool.scripting.applyTransfoTree | ( | pft, | |
| arg, | |||
| args, | |||
| plotCentralFile | |||
| ) |
Apply tree transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments :param plotCentralFile: central file for plots
Definition at line 971 of file scripting.py.

| pyfortool.scripting.applyTransfoVariables | ( | pft, | |
| arg, | |||
| args, | |||
| simplify, | |||
| parserOptions, | |||
| stopScopes | |||
| ) |
Apply variables transformations on a PYFT instance :param pft: PYFT instance :param arg: argument to deal with :param args: parsed argparsed arguments :param simplify: kwargs to simplify :param parserOptions: fxtran parser options :param stopScopes: upper limit in call tree for some transformations
Definition at line 736 of file scripting.py.

| pyfortool.scripting.getArgs | ( | parser | ) |
Parse arguments and interpret the --optsByEnv option
:param parser: argparse parser
:return: a tuple with
- an argparse namespace containing common arguments (not using the --optsEnv option)
- a function taking a filename as input and returning
- an argparse namespace with the common arguments and the ones added by
interpreting the --optsEnv option
- an ordered list of arguments
Definition at line 166 of file scripting.py.

| pyfortool.scripting.getDescTree | ( | args, | |
cls = Tree |
|||
| ) |
get the Tree object built with the parsed arguments :param args: arguments parsed by the argparse parser :param cls: class to use (usefull for manager) :return: a Tree instance
Definition at line 229 of file scripting.py.


| pyfortool.scripting.getParserOptions | ( | args | ) |
Get the options to use for the fxtran parser :param args: arguments parsed by the argparse parser
Definition at line 215 of file scripting.py.

| pyfortool.scripting.main | ( | ) |
Core of the pyfortool.py command
Definition at line 116 of file scripting.py.

| pyfortool.scripting.mainParallel | ( | ) |
Core of the pyfortool_parallel.py command
Definition at line 58 of file scripting.py.
| pyfortool.scripting.task | ( | filename | ) |
Function to use on each file :param clsPYFT: PYFT class to use :param filename: file name
Definition at line 21 of file scripting.py.

| pyfortool.scripting.updateParser | ( | parser, | |
| withInput, | |||
| withOutput, | |||
| withXml, | |||
| withPlotCentralFile, | |||
| treeIsOptional, | |||
| nbPar, | |||
| restrictScope | |||
| ) |
Updates an argparse parser with arguments common to all the different tools :param parser: parser in which arguments are added :param withOutput: do we need the INPUT argument :param withOutput: do we need the OUTPUT argument :param withXml: do we need to be able to define an XML output file :param withPlotCentralFile: to add the --plotCentralFile argument :param treeIsOptional: is the --tree argument optional? :param nbPar: number of parallel processes :param restrictScope: can we specify the scope path
Definition at line 246 of file scripting.py.


| pyfortool.scripting.updateParserApplications | ( | parser | ) |
Updates an argparse parser with applications arguments
Definition at line 487 of file scripting.py.

| pyfortool.scripting.updateParserChecks | ( | parser | ) |
Updates an argparse parser with checks arguments
Definition at line 583 of file scripting.py.

| pyfortool.scripting.updateParserCosmetics | ( | parser | ) |
Updates an argparse parser with cosmetics arguments
Definition at line 447 of file scripting.py.

| pyfortool.scripting.updateParserFxtran | ( | parser | ) |
Updates an argparse parser with fxtran arguments
Definition at line 362 of file scripting.py.

| pyfortool.scripting.updateParserInputsOutputs | ( | parser, | |
| withInput, | |||
| withOutput, | |||
| withXml | |||
| ) |
Updates an argparse parser with input/output arguments :param parser: parser in which arguments are added :param withOutput: do we need the INPUT argument :param withOutput: do we need the OUTPUT argument :param withXml: do we need to be able to define an XML output file
Definition at line 337 of file scripting.py.

| pyfortool.scripting.updateParserMisc | ( | parser | ) |
Updates an argparse parser with misc arguments
Definition at line 627 of file scripting.py.

| pyfortool.scripting.updateParserOpenACC | ( | parser | ) |
Updates an argparse parser with openACC arguments
Definition at line 557 of file scripting.py.

| pyfortool.scripting.updateParserPreprocessor | ( | parser | ) |
Updates an argparse parser with statements arguments
Definition at line 666 of file scripting.py.

| pyfortool.scripting.updateParserStatements | ( | parser | ) |
Updates an argparse parser with statements arguments
Definition at line 610 of file scripting.py.

| pyfortool.scripting.updateParserTree | ( | parser, | |
| withPlotCentralFile, | |||
| treeIsOptional | |||
| ) |
Updates an argparse parser with statements arguments :param withPlotCentralFile: to add the --plotCentralFile argumen :param treeIsOptional: is the --tree argument optional?
Definition at line 638 of file scripting.py.

| pyfortool.scripting.updateParserVariables | ( | parser | ) |
Updates an argparse parser with variables arguments
Definition at line 374 of file scripting.py.

| tuple pyfortool.scripting.ARG_UPDATE_CNT |
Definition at line 161 of file scripting.py.