developers:coding_rules
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
developers:coding_rules [2021/08/31 18:32] – [12. Other topics] Xavier Gonze | developers:coding_rules [2024/09/02 14:20] (current) – Maryam Azizi | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP important> | ||
+ | |||
~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
====== ABINIT style for Fortran programming ====== | ====== ABINIT style for Fortran programming ====== | ||
(revised many times from the original draft in 1991, BUT NOT REALLY UP_TO_DATE ... SHOULD BE REVISED ONCE MORE) | (revised many times from the original draft in 1991, BUT NOT REALLY UP_TO_DATE ... SHOULD BE REVISED ONCE MORE) | ||
- | |||
- | The following sections are covered: | ||
- | |||
- | * Foreword. | ||
- | * Declarations. | ||
- | * Variables | ||
- | * File format | ||
- | * Constructs for flow control | ||
- | * Use of arrays | ||
- | * Coding practice | ||
- | * Exception handling, I/Os | ||
- | * To be avoided. | ||
- | * Use of BLAS and LAPACK subroutines. | ||
- | * Modules | ||
- | * Derived datatypes | ||
- | * Other topics | ||
- | * Useful links | ||
- | |||
====== 1. Foreword ====== | ====== 1. Foreword ====== | ||
- | The ABINIT code should conform to the ANSI Fortran norm (Fortran | + | The ABINIT code should conform to the ANSI Fortran norm (Fortran |
- | This norm is abbreviated F95, while the older norm, Fortran 77, is abbreviated F77. | + | Still, most of the following rules can already used with Fortran95. |
- | The following set of rules complements the F95 standard. | + | The following set of rules complements the F95 (or Fortran2003) |
The ABINIT code conforms to most of these additional rules already. | The ABINIT code conforms to most of these additional rules already. | ||
Each modification, | Each modification, |
developers/coding_rules.1630434737.txt.gz · Last modified: 2021/08/31 18:32 by Xavier Gonze