Skip to content

hydro-jules/fortran-callgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tool to create call graphs from JULES source code

Documentation

python callgrapher.py --help
usage: callgrapher.py [-h] [-s SOURCE_DIR] [-b BUILD_DIR] [-e EXTENSION]
                      [-o OUTPUT_DIR] [-i IGNORE [IGNORE ...]] [-c] [-v]
                      root_callers [root_callers ...]

generate call graphs from preprocessed Fortran source code

positional arguments:
  root_callers          name(s) of the caller(s) in the algorithm to use as
                        root to call graph (use double underscore to separate
                        module and subroutine/function)

optional arguments:
  -h, --help            show this help message and exit
  -s SOURCE_DIR, --source_dir SOURCE_DIR
                        path to directory containing Fortran files to consider
                        for call graph - default to current working directory
  -b BUILD_DIR, --build_dir BUILD_DIR
                        path to directory where object files resulting from
                        compilation of Fortran files are (required for writing
                        the dependency file) - default to source directory
  -e EXTENSION, --extension EXTENSION
                        file extension for the source code (case-sensitive) -
                        default to f90
  -o OUTPUT_DIR, --output_dir OUTPUT_DIR
                        path to directory where to save dot and pdf outputs of
                        the call graphs - default to outputs folder
  -i IGNORE [IGNORE ...], --ignore IGNORE [IGNORE ...]
                        name(s) of the callee(s) in the algorithm to ignore in
                        the call graph (use double underscore to separate
                        module and subroutine/function)
  -c, --cluster         visually gather entities into their containing modules
                        (if any)
  -v, --without_variables
                        option to not display the variables

Example

python callgrapher.py 'snow_mod__snow' -s 'jules-vn6.0/srcpp'

About

Tool to create call graphs from JULES source code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages