dev:codingconventions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dev:codingconventions [2018/12/21 08:41] – [Use existing infrastructure] tmueller | dev:codingconventions [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Stick to the standard ===== | ===== Stick to the standard ===== | ||
| - | * Code enabled by default should be standard Fortran 2008 [-std=f2008] | + | * Code enabled by default should be standard Fortran 2008 [-std=f2008] and C99 [-std=c99] |
| * OpenMP code should follow version 3.X of the standard | * OpenMP code should follow version 3.X of the standard | ||
| * MPI should should follow version 3 of the standard | * MPI should should follow version 3 of the standard | ||
| Line 22: | Line 22: | ||
| ===== Don't use poorly designed language features ===== | ===== Don't use poorly designed language features ===== | ||
| * Do not use the '' | * Do not use the '' | ||
| - | * Do not use left-hand-side (lhs) reallocations of allocatables [-Wrealloc-lhs-all]. [[http://www.tddft.org/pipermail/octopus-devel/2012-February/005510.html | + | * Do not use left-hand-side (lhs) reallocations of allocatables [-Wrealloc-lhs]. [[https://github.com/cp2k/cp2k/issues/726 | Why? ]] |
| * Do not use '' | * Do not use '' | ||
| * Do not use '' | * Do not use '' | ||
dev/codingconventions.1545381710.txt.gz · Last modified: (external edit)
