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 [2018/12/19 11:34] – raise recommended MPI standard to 3, drop recommendation about OOP tmueller | dev:codingconventions [2018/12/21 08:41] – [Use existing infrastructure] tmueller | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Stick to the standard ===== | ===== Stick to the standard ===== | ||
- | * Code enabled by default should be standard | + | * Code enabled by default should be standard |
- | * OpenMP code should follow | + | * OpenMP code should follow version 3.X of the standard |
- | * MPI should should follow | + | * MPI should should follow version 3 of the standard |
- | * Extended functionality should match [[wp> | + | * Extended functionality should match [[wp> |
===== Write explicit code ===== | ===== Write explicit code ===== | ||
Line 39: | Line 39: | ||
===== Use existing infrastructure ===== | ===== Use existing infrastructure ===== | ||
+ | |||
+ | Always prefer [[https:// | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | |||
For many common operations there exist wrappers in CP2K to prevent usage errors and to allow for central redirections, | For many common operations there exist wrappers in CP2K to prevent usage errors and to allow for central redirections, | ||
+ | |||
* Use the routines from '' | * Use the routines from '' | ||
* Use the routines from the full-matrix '' | * Use the routines from the full-matrix '' |
dev/codingconventions.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1