Updated style guide.

This commit is contained in:
Paul Romano 2012-10-18 11:59:16 -04:00
parent 1768699cad
commit a402ab1a45

View file

@ -67,6 +67,8 @@ in the constants.F90 module.
For arbitrary length character variables, use the pre-defined lengths
MAX_LINE_LEN, MAX_WORD_LEN, and MAX_FILE_LEN if possible.
Do not use old-style character/array length (e.g. character*80, real*8).
Integer values being used to indicate a certain state should be defined as named
constants (see the constants.F90 module for many examples).
@ -82,8 +84,8 @@ No:
if (boundary_condition == -10) then
Never create arrays with a pre-defined maximum length. Always use dynamic memory
allocation. Use allocatable variables instead of pointer variables when
Avoid creating arrays with a pre-defined maximum length. Use dynamic memory
allocation instead. Use allocatable variables instead of pointer variables when
possible.
Shared/Module Variables