@@ -44,21 +44,21 @@ focus on the semantics of the proposed changes rather than style and formatting.
44
44
45
45
## Attributes
46
46
47
+ <!-- ATTENTION! This section includes intentional trailing whitespace to get decent formatting with GFM and Python Markdown. -->
48
+
47
49
* Always specify ` intent ` for dummy arguments.
48
50
* Don't use ` dimension ` attribute to declare arrays because it is less verbose.
49
- Use this:
50
-
51
+ Use this:
51
52
```
52
53
real, allocatable :: a(:), b(:,:)
53
- ```
54
-
55
- instead of:
56
-
54
+ ```
55
+ instead of:
57
56
```
58
57
real, dimension(:), allocatable :: a
59
- real, dimension(:,:), allocatable :: b
58
+ ```
60
59
```
61
-
60
+ real, dimension(:,:), allocatable :: b
61
+ ```
62
62
When defining many arrays of the same dimension, ` dimension ` can be used as an exception if it makes the code less verbose.
63
63
* If the ` optional ` attribute is used to declare a dummy argument, it should follow the ` intent ` attribute.
64
64
@@ -67,3 +67,21 @@ focus on the semantics of the proposed changes rather than style and formatting.
67
67
Fortran allows certain block constructs or scopes to include the name of the program unit in the end statement.
68
68
The convention adopted herein is to include procedure names, ` module ` names and ` program ` names in the ` end ` statement,
69
69
unless the closing statement can reasonably be expected to be on the same screen or page, within about 25 lines.
70
+
71
+ ## Document public API code with FORD
72
+
73
+ Documentation strings should be provided for all public and protected entities and their arguments or parameters.
74
+ This is currently accomplished using the [ FORD tool] ( https://github.com/Fortran-FOSS-Programmers/ford ) .
75
+ For help writing FORD style documentation please see the [ FORD wiki] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki ) .
76
+ The following two sections are most relevant for contributing new code:
77
+
78
+ * [ Writing Documentation] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki/Writing-Documentation )
79
+ * [ Documentation Meta Data] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki/Documentation-Meta-Data )
80
+ * [ Limitations] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki/Limitations )
81
+
82
+ To write the "spec" (specification) for a new proposal, please place it in the
83
+ [ FORD "pages"] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki/Writing-Pages ) directory at
84
+ [ ` doc/specs/ ` ] ( https://github.com/fortran-lang/stdlib/tree/master/doc/specs ) .
85
+ To get help please see the [ "Writing Pages"] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki/Writing-Pages )
86
+ and [ "Writing Documentation"] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki/Writing-Documentation ) pages
87
+ on the [ FORD wiki] ( https://github.com/Fortran-FOSS-Programmers/ford/wiki ) .
0 commit comments