source: palm/trunk/SOURCE/mod_kinds.f90 @ 1682

Last change on this file since 1682 was 1682, checked in by knoop, 6 years ago

Code annotations made doxygen readable

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1!> @file mod_kinds.f90
2!--------------------------------------------------------------------------------!
3! This file is part of PALM.
4!
5! PALM is free software: you can redistribute it and/or modify it under the terms
6! of the GNU General Public License as published by the Free Software Foundation,
7! either version 3 of the License, or (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with
14! PALM. If not, see <http://www.gnu.org/licenses/>.
15!
16! Copyright 1997-2014  Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! ------------------
21! Code annotations made doxygen readable
22!
23! Former revisions:
24! -----------------
25! $Id: mod_kinds.f90 1682 2015-10-07 23:56:08Z knoop $
26!
27! 1306 2014-03-13 14:30:59Z raasch
28! Initial revision
29!
30! Description:
31! ------------
32!> Standard kind definitions
33!> wp (working precision) and iwp (integer working precision) are the kinds
34!> used by default in all variable declarations.
35!> By default, PALM is using wp = dp (64bit), and iwp = isp (32bit).
36!> If you like to switch to other precision, then please set wp/iwp
37!> appropriately by assigning other kinds below.
38!------------------------------------------------------------------------------!
39 MODULE kinds
40 
41
42    IMPLICIT NONE
43
44!
45!-- Floating point kinds
46    INTEGER, PARAMETER ::  sp = 4           !< single precision (32 bit)
47    INTEGER, PARAMETER ::  dp = 8           !< double precision (64 bit)
48
49!
50!-- Integer kinds
51    INTEGER, PARAMETER ::  isp = SELECTED_INT_KIND(  9 )   !< single precision (32 bit)
52    INTEGER, PARAMETER ::  idp = SELECTED_INT_KIND( 14 )   !< double precision (64 bit)
53
54!
55!-- Set kinds to be used as defaults
56    INTEGER, PARAMETER ::   wp =  dp          !< default real kind
57    INTEGER, PARAMETER ::  iwp = isp          !< default integer kind
58
59    SAVE
60
61 END MODULE kinds
Note: See TracBrowser for help on using the repository browser.