File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,26 @@ focus on the semantics of the proposed changes rather than style and formatting.
42
42
* Where conventional and appropriate shortening of a word is used then the underscore may be omitted,
43
43
for example ` linspace ` is preferred over ` lin_space `
44
44
45
+ ## Attributes
46
+
47
+ * Always specify ` intent ` for dummy arguments.
48
+ * Don't use ` dimension ` attribute to declare arrays because it is less verbose.
49
+ Use this:
50
+
51
+ ```
52
+ real, allocatable :: a(:), b(:,:)
53
+ ```
54
+
55
+ instead of:
56
+
57
+ ```
58
+ real, dimension(:), allocatable :: a
59
+ real, dimension(:,:), allocatable :: b
60
+ ```
61
+
62
+ When defining many arrays of the same dimension, ` dimension ` can be used as an exception if it makes the code less verbose.
63
+ * If the ` optional ` attribute is used to declare a dummy argument, it should follow the ` intent ` attribute.
64
+
45
65
## End <scope > block closing statements
46
66
47
67
Fortran allows certain block constructs or scopes to include the name of the program unit in the end statement.
You can’t perform that action at this time.
0 commit comments