f7e4e839f6 | ||
---|---|---|
.. | ||
helpdoc.d | ||
Makefile | ||
README.helpdoc | ||
README.md | ||
callhtml.pl | ||
calltree.pl | ||
check_gui | ||
device_props.c | ||
diff_gui_help | ||
gen-emacs-mode | ||
gen-emacs-mode.tcl | ||
get_device_props.py | ||
guihelp.xsl | ||
helpdoc | ||
helpdoc.schema | ||
input_xx.xsl | ||
mem_counter | ||
mem_counter.py | ||
src-normal | ||
src-normal.py | ||
update_gui_help |
README.md
Dev Tools
This directory contains several tools that may be useful for developers
-
mem_counter
. A script that tracks all calls toallocate
anddeallocate
, appending a call to subroutineUtilXlib/mem_counter.f90
. Calls python scriptmem_counter.py
, written by Pietro Bonfà (CINECA).mem_counter -h
gives information on how to use it. -
src-normal
. A script that "normalizes" the fortran syntax to QE style. Calls python scriptsrc-normal.py
, written by Norbert Nemec.Usage:
src-normal file1.f90 [file2.f90 ...]
orsrc-normal
-
calltree.pl
A perl script, to be run from the root QE directory, producing in the standard output the tree of called routines -
callhtml.pl
As above, producing a html page with the tree of called routines -
release.sh
Script for packaging releases - obsolete, to be adapted to git -
Utilities for PWgui:
check_gui
(called viaMakefile
)diff_gui_help
guihelp.xsl
update_gui_help
-
Utilities for helpdoc (see
README.helpdoc
):helpdoc
helpdoc.d
helpdoc.schema
input_xx.xsl
-
Utilities for emacs_mode:
gen-emacs-mode
gen-emacs-mode.tcl
Coding style
This are some basic rules to follow when writting Fortran code.
- Use spaces for indentation instead of tabs (tab width 8 characters).
- Trailing whitespaces at the end the line should be removed.
- Normalize multiword keywords.
- Use capitalize version of the intrisic keywords (IF, DO, SUBROUTINE, etc.).
- Prefer the newest version of the comparison operators (==, >, etc.) instead of the old one (.eq., .gt., etc.)