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

Last change on this file since 2000 was 2000, checked in by knoop, 8 years ago

Forced header and separation lines into 80 columns

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