10 | | 4. 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. Indenting by whitespace only, not tab characters (check your editor settings!). |
| 10 | 4. Use indentations for loops, `if`-statements, etc. |
| 11 | - From start till end of loop, all code lines should be indented by 2 spaces; |
| 12 | - nested loops should have multiple indentations so that the looping level is always clear. |
| 13 | - Indenting by whitespace only, not tab characters (check your editor settings!) |
| 14 | - Continuation lines can be indented by >2 chars, 3 is preferred |
| 15 | - long DO .. END DO loops should in addition be [FpCodingStandardSanmpleNamedloop named] so that the matching END DO is easly identified |
| 16 | - we use ELSEIF and ENDIF (written together) but END DO (maybe unify later) |