quantum-espresso/dev-tools
Tone Kokalj f31f444ae1 simplyfing exported-cmds.pwtk script for PWTK QE-mode 2021-05-04 11:45:35 +02:00
..
helpdoc.d An issue with spacing caused the two floats to be adjacent to one another if they are sufficiently large, which causes q2r to crash when reading the files. Adding an additional space fixes this issue. 2020-11-29 20:49:26 +00:00
porting More missing # in #ifdef 2021-01-05 08:30:30 +00:00
Makefile An issue with spacing caused the two floats to be adjacent to one another if they are sufficiently large, which causes q2r to crash when reading the files. Adding an additional space fixes this issue. 2020-11-29 20:49:26 +00:00
README.helpdoc smallish ... 2016-08-19 15:39:09 +00:00
README.md [Skip-CI] Improvements to mem_counter, suggested by Samuel Poncé 2019-04-26 23:02:19 +02:00
callhtml.pl Perl scripts calltree.pl and calltre.pl decyphered (sort of), README updated 2018-03-05 09:48:21 +01:00
calltree.pl Perl scripts calltree.pl and calltre.pl decyphered (sort of), README updated 2018-03-05 09:48:21 +01:00
check_gui An issue with spacing caused the two floats to be adjacent to one another if they are sufficiently large, which causes q2r to crash when reading the files. Adding an additional space fixes this issue. 2020-11-29 20:49:26 +00:00
device_props.c Refreshed configure, added helper functions for CUDA compilation. 2018-03-15 14:13:49 +01:00
diff_gui_help An issue with spacing caused the two floats to be adjacent to one another if they are sufficiently large, which causes q2r to crash when reading the files. Adding an additional space fixes this issue. 2020-11-29 20:49:26 +00:00
exported-cmds.pwtk simplyfing exported-cmds.pwtk script for PWTK QE-mode 2021-05-04 11:45:35 +02:00
gen-emacs-mode improving the generation of QE-emacs-modes to better handle the PWTK-mode 2021-04-23 19:53:16 +02:00
gen-emacs-mode.tcl simplyfing exported-cmds.pwtk script for PWTK QE-mode 2021-05-04 11:45:35 +02:00
get_device_props.py Merge branch 'develop' into syncqe2 2020-10-18 17:50:41 +02:00
guihelp.xsl Updating helpdoc such that it is aware of the new "multidimension" 2019-03-01 17:55:37 +01:00
helpdoc typo correction 2016-09-05 10:29:03 +00:00
helpdoc.schema added new multidimension entry in helpdoc.schema 2018-07-24 07:17:14 +00:00
input_xx.xsl added new multidimension entry in helpdoc.schema 2018-07-24 07:17:14 +00:00
mem_analyse.py Convert to Python3 and minor improvements 2020-09-23 23:50:24 +09:00
mem_counter In the HP postprocessing routine added some explanations 2020-11-18 16:29:39 +00:00
mem_counter.py In the HP postprocessing routine added some explanations 2020-11-18 16:29:39 +00:00
release-checklist.md Variable "ftau" (fractional translations in FFT grid units) is a source 2019-04-08 21:19:02 +02:00
src-normal dev-tools/src-normal: simple python script to normalize Fortran 90 source code (N. Nemec) 2010-05-14 14:56:29 +00:00
src-normal.py Convert to Python3 and minor improvements 2020-09-23 23:50:24 +09:00
update_gui_help An issue with spacing caused the two floats to be adjacent to one another if they are sufficiently large, which causes q2r to crash when reading the files. Adding an additional space fixes this issue. 2020-11-29 20:49:26 +00:00

README.md

Dev Tools

This directory contains several tools that may be useful for developers

  • mem_counter. A script that tracks all calls to allocate and deallocate, appending a call to subroutine UtilXlib/mem_counter.f90. Calls python script mem_counter.py, written by Pietro Bonfà (CINECA) and improved by Samuel Poncé. mem_counter -h gives information on how to use it.

  • mem_analyse.py is a python script, by Samuel Poncé, locating memory leaks. See the script header for directions on how to use it.

  • src-normal. A script that "normalizes" the fortran syntax to QE style (see below). Calls python script src-normal.py, written by Norbert Nemec.

    Usage: src-normal file1.f90 [file2.f90 ...] or src-normal

  • Utilities for GPUs (Pietro Bonfà):

    • get_device_props.py
    • device_props.c
  • (Obsolete?) utilities:

    • 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
  • Utilities for PWgui:

    • check_gui (called via Makefile)
    • 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

These are some basic rules for Fortran codes enforced by src_normal:

  • Use spaces for indentation instead of tabs (tab width 8 characters).
  • Trailing whitespaces at the end the line should be removed.
  • Normalize multiword keywords (e.g. END DO).
  • Use capitalize version of the intrisic keywords (IF, DO, SUBROUTINE, etc.).
  • Use the newest version of the comparison operators (==, >, etc.) instead of the old one (.eq., .gt., etc.)