Skip to content

Style convention #283

@lmdiazangulo

Description

@lmdiazangulo

Here we try to establish some conventions. Feel free to propose your own!

  1. All names and comments must be in English.
  2. Fortran keywords always lowercase. Example: type rather than TYPE.
  3. No space with parenthesis when declaring variables. Example: write type(edge_t) rather than type (edge_t).
  4. Fortran type names should end with _t. Example: prefer type(cell_t) rather than type(cell).
  5. Fortran module names should end with _m. Example: prefer module mesh_m rather than module mesh.
  6. Prefer endings in two words. Example: prefer end if rather than endif.
  7. Do not use Fortran keywords as variable names. Example: do not use size as variable name.
  8. No space between ( and the interior of functions or during variable declaration. Example prefer integer(kind rather than integer ( kind
  9. All parameters must be named with upper cased letters. Example: prefer RKIND to rkind.

Metadata

Metadata

Assignees

Labels

HousecleaningStuff related with style conventions, good practices, clean code, repo organization, etc.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions