Version 2 (modified by pesei, 10 years ago) (diff)

Proper formatting; note that original version was by "admin", but comes from ansto

FLEXPART Coding Standards

  1. Explain all variables you use in writing (as comment)
  1. Comment all code
  1. As much as possible, integer variables should have names starting with i,j,k,l,m,n
  1. Use indentations for loops, if-statements, etc. From start till end of loop, all code lines should be indented by 2 spaces; nested loops should have multiple indentations so that the looping level is always clear. Because of automatic transcription to F90 standards, a lot of this has been lost and we should try to reintroduce this whereever it has been lost.
  1. Variables that are passed between subroutines should be marked in the subroutine as input (i), output (o) or both (i/o) when values are changed both in the subroutine and in other routines. This should be done just below the subroutine statement. Again, this has become a mess because of the automatic transcription. We will try to make it systematic again.
  1. If you make changes in a subroutine, explain them in the header: Why? What? When?
hosted by ZAMG