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

Last change on this file since 1989 was 1683, checked in by knoop, 9 years ago

last commit documented

  • 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!
22!
23! Former revisions:
24! -----------------
25! $Id: mod_kinds.f90 1683 2015-10-07 23:57:51Z gronemeier $
26!
27! 1682 2015-10-07 23:56:08Z knoop
28! Code annotations made doxygen readable
29!
30! 1306 2014-03-13 14:30:59Z raasch
31! Initial revision
32!
33! Description:
34! ------------
35!> Standard kind definitions
36!> wp (working precision) and iwp (integer working precision) are the kinds
37!> used by default in all variable declarations.
38!> By default, PALM is using wp = dp (64bit), and iwp = isp (32bit).
39!> If you like to switch to other precision, then please set wp/iwp
40!> appropriately by assigning other kinds below.
41!------------------------------------------------------------------------------!
42 MODULE kinds
43 
44
45    IMPLICIT NONE
46
47!
48!-- Floating point kinds
49    INTEGER, PARAMETER ::  sp = 4           !< single precision (32 bit)
50    INTEGER, PARAMETER ::  dp = 8           !< double precision (64 bit)
51
52!
53!-- Integer kinds
54    INTEGER, PARAMETER ::  isp = SELECTED_INT_KIND(  9 )   !< single precision (32 bit)
55    INTEGER, PARAMETER ::  idp = SELECTED_INT_KIND( 14 )   !< double precision (64 bit)
56
57!
58!-- Set kinds to be used as defaults
59    INTEGER, PARAMETER ::   wp =  dp          !< default real kind
60    INTEGER, PARAMETER ::  iwp = isp          !< default integer kind
61
62    SAVE
63
64 END MODULE kinds
Note: See TracBrowser for help on using the repository browser.