next up previous
Next: Modularity Up: Parallel Community Climate? Previous: PCCM2 Routines

PCCM2 CODING STANDARDS

The following rules guide the coding style used in CCM2 and the PCCM2 implementation.

Common blocks in include files. Only named common should be used with one common block and associated declarations per include file. Data items in a common block must be ordered by type, with long items first to avoid alignment problems.

No GO TO or computed GOTO statements.

IMPLICIT NONE Variables should be typed using the default FORTRAN 77 typing for readability. Integers should begin with the letters (i-n) and reals should begin with (a-h,o-z). Complex quantities should be clearly identified, variable names that begin with a (c) or (z) are preferred. Parameter variables should begin with (p)

The use of parameter variables is encouraged. Parameter variables should be used directly in the code.

Comments for each subroutine should clearly identify what variables are input to the subroutine and not changed and what variables are output or changed on exit.





John B. Drake
Wed May 15 09:51:22 EDT 1996