-
Notifications
You must be signed in to change notification settings - Fork 1
CodingStandards
Andy Porter edited this page May 10, 2018
·
2 revisions
The aim of these coding standards is to produce a uniform code base that is easy to read/maintain and can be reliably grep'd. Some of the rules are really a matter of taste but since peoples' taste varies we choose to dictate :-)
-
implicit none
is mandatory! - Module imports should use the
only
clause. - Try not to get carried away with Fortran 2008 features as they tend to upset compilers.
- Fortran key words should be in lower case.
- Commas should be followed by a single space.
- Each level of indentation should use three spaces.
- Continuation lines should be indented 'sensibly' - e.g. to line up routine arguments.
- Operators should be surrounded by single spaces.
- Lines should be no longer than 80 characters (but expressions may be continued on multiple lines).