Changes between Initial Version and Version 1 of doc/tec/developerrules/palmstandard


Ignore:
Timestamp:
Oct 15, 2018 5:22:09 PM (6 years ago)
Author:
kanani
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/developerrules/palmstandard

    v1 v1  
     1= PALM coding rules =
     2This is.....\\
     3
     4'''Why to follow some standards?''' - Because everyone has her/his own programming style, sort of a dialect. And as it is, no one can understand all the possible dialects. So what do we do? We learn and apply the coding standard to make PALM more easily readable for all current and future developers. Let's all work on that - together.
     5
     6== Formatting ==
     7
     8
     9== Naming conventions ==
     10
     11
     12== New modules ==
     13=== File header ====
     14Files always start with a doxygen-readable comment line including the FORTRAN file name.\\
     15This is followed by the license section. If your code originates from another model, please clarify the license and permissions for this code to enter the PALM model system. It might be necessary in that case to add some more information to this header.\\
     16The revisions section will later include short notes of the changes applied to a specific svn revision of this file. The {{{$Id$}}} string is required so that svn knows to generate the respective time stamp for a revision (see existing SOURCE files).\\
     17Finally, involved authors are included, followed by a description of the purpose and functions of the module. If necessary, TODOs, notes and known bugs can be added. The "!>" indicate doxygen-readable comment lines, the "@" marks doxygen variables.
     18{{{
     19!> @file new_module_mod.f90
     20!-----------------------------------------------------------------------------!
     21! This file is part of the PALM model system.
     22!
     23! PALM is free software: you can redistribute it and/or modify it under the
     24! terms of the GNU General Public License as published by the Free Software
     25! Foundation, either version 3 of the License, or (at your option) any later
     26! version.
     27!
     28! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
     29! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     30! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     31!
     32! You should have received a copy of the GNU General Public License along with
     33! PALM. If not, see <http://www.gnu.org/licenses/>.
     34!
     35! Copyright 2018-2018 Leibniz Universitaet Hannover, <your institution>
     36!-----------------------------------------------------------------------------!
     37!
     38! Current revisions:
     39! -----------------
     40! Initial revision
     41!
     42! Former revisions:
     43! -----------------
     44! $Id$
     45!
     46! Authors:
     47! --------
     48!> @author <Author 1> (<Affiliation>)
     49!> @author <Author 2> (<Affiliation>)
     50!
     51!
     52! Description:
     53! ------------
     54!> <Description of the new module>
     55!>
     56!>
     57!> @todo <Enter things that remain to be done>
     58!> @note <Enter notes on the module>
     59!> @bug  <Enter known bugs here>
     60!------------------------------------------------------------------------------!
     61}}}