dev:codingconventions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:codingconventions [2016/12/07 14:29] – Add a coding convention. agloess | dev:codingconventions [2018/12/19 11:34] – raise recommended MPI standard to 3, drop recommendation about OOP tmueller | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Coding Conventions ====== | ====== Coding Conventions ====== | ||
+ | |||
===== Stick to the standard ===== | ===== Stick to the standard ===== | ||
+ | |||
* Code enabled by default should be standard Fortran2003 [-std=f2003] | * Code enabled by default should be standard Fortran2003 [-std=f2003] | ||
- | * Avoid using new OOP aspects, because compilers do not yet support them well enough. | ||
* OpenMP code should follow the version 3.X of the standard | * OpenMP code should follow the version 3.X of the standard | ||
- | * MPI should should follow the version | + | * MPI should should follow the version |
* Extended functionality should match [[wp> | * Extended functionality should match [[wp> | ||
Line 38: | Line 39: | ||
===== Use existing infrastructure ===== | ===== Use existing infrastructure ===== | ||
- | For many common | + | For many common |
* Use the routines from '' | * Use the routines from '' | ||
* Use the routines from the full-matrix '' | * Use the routines from the full-matrix '' | ||
* Use the routines from '' | * Use the routines from '' | ||
+ | * Use the routines from '' | ||
* Use the routines from '' | * Use the routines from '' | ||
* Don't use '' | * Don't use '' |
dev/codingconventions.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1