PyForTool
Python-fortran-tool
Loading...
Searching...
No Matches
Classes | Functions
pyfortool.applications Namespace Reference

Classes

class  Applications
 

Functions

 _loopVarPHYEX (lowerDecl, upperDecl, lowerUsed, upperUsed, name, index)
 

Detailed Description

High-level FORTRAN code transformations.

Provides the Applications class for application-specific transformations
including profiling instrumentation, GPU optimization, and model-specific
code adaptations.

Key Features
------------
- DR_HOOK profiling instrumentation (add/remove)
- Budget diagnostic removal
- GPU stack allocation (AROME/MESO-NH models)
- Structure member inlining for performance
- PHYEX single-column mode adaptation
- Array dimension reduction
- Submodule generation for PHYEX

Classes
-------
Applications : Mixin class providing high-level transformations

Examples
--------
>>> pft = PYFT('input.F90')
>>> pft.addDrHook()  # Add timing instrumentation
>>> pft.deleteDrHook()  # Remove profiling
>>> pft.addStack('AROME', stopScopes)  # GPU stack allocation
>>> pft.convertTypesInCompute()  # Inline structure members
>>> pft.deleteNonColumnCallsPHYEX()  # Remove multi-column dependencies

Function Documentation

◆ _loopVarPHYEX()

pyfortool.applications._loopVarPHYEX (   lowerDecl,
  upperDecl,
  lowerUsed,
  upperUsed,
  name,
  index 
)
protected
Try to guess the name of the variable to use for looping on indexes
:param lowerDecl, upperDecl: lower and upper bounds as defined in the declaration statement
:param lowerUsed, upperUsed: lower and upper bounds as given in the statement
:param name: name of the array
:param index: index of the rank
:return: the variable name of False to discard this statement

Definition at line 45 of file applications.py.