mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Updated style guide.
This commit is contained in:
parent
1768699cad
commit
a402ab1a45
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue