ARPS Version 5.0 Coding Standard in Fortran 90
DRAFT
7/30/1998
Updated 8/7/1998

General rules and conventions

Rules and conventions used in ARPS subroutines

Subroutine layout:

Header declaration
SUBROUTINE subname(input_argument_list, output_argument_list, work_arrays)

Purpose
Author, date, and modification history
Use module statement
IMPLICIT NONE statement
Declaration of variables in argument list with INTENT together with variable definitions including units
Local variable declaration
PARAMETER statements
Executable code
CONTAINS statement
Internal subprograms or module subprograms

END SUBROUTINE subname

Obsolescent Fortran features to avoid:

Example code

Subroutine solvq.f90 is an example written according the above standard.