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

Last change on this file since 3361 was 2718, checked in by maronga, 7 years ago

deleting of deprecated files; headers updated where needed

  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[1682]1!> @file mod_kinds.f90
[2000]2!------------------------------------------------------------------------------!
[2696]3! This file is part of the PALM model system.
[1306]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!
[2718]17! Copyright 1997-2018 Leibniz Universitaet Hannover
[2000]18!------------------------------------------------------------------------------!
[1306]19!
20! Current revisions:
21! ------------------
[1683]22!
[2001]23!
[1306]24! Former revisions:
25! -----------------
26! $Id: mod_kinds.f90 2718 2018-01-02 08:49:38Z knoop $
[2716]27! Corrected "Former revisions" section
28!
29! 2696 2017-12-14 17:12:51Z kanani
30! Change in file header (GPL part)
[1306]31!
[2716]32! 2101 2017-01-05 16:42:31Z suehring
33!
[2001]34! 2000 2016-08-20 18:09:15Z knoop
35! Forced header and separation lines into 80 columns
36!
[1683]37! 1682 2015-10-07 23:56:08Z knoop
38! Code annotations made doxygen readable
39!
[1307]40! 1306 2014-03-13 14:30:59Z raasch
[1306]41! Initial revision
42!
43! Description:
44! ------------
[1682]45!> Standard kind definitions
46!> wp (working precision) and iwp (integer working precision) are the kinds
47!> used by default in all variable declarations.
48!> By default, PALM is using wp = dp (64bit), and iwp = isp (32bit).
49!> If you like to switch to other precision, then please set wp/iwp
50!> appropriately by assigning other kinds below.
[1306]51!------------------------------------------------------------------------------!
[1682]52 MODULE kinds
53 
[1306]54
55    IMPLICIT NONE
56
57!
58!-- Floating point kinds
[1682]59    INTEGER, PARAMETER ::  sp = 4           !< single precision (32 bit)
60    INTEGER, PARAMETER ::  dp = 8           !< double precision (64 bit)
[1306]61
62!
63!-- Integer kinds
[1682]64    INTEGER, PARAMETER ::  isp = SELECTED_INT_KIND(  9 )   !< single precision (32 bit)
65    INTEGER, PARAMETER ::  idp = SELECTED_INT_KIND( 14 )   !< double precision (64 bit)
[1306]66
67!
68!-- Set kinds to be used as defaults
[1682]69    INTEGER, PARAMETER ::   wp =  dp          !< default real kind
70    INTEGER, PARAMETER ::  iwp = isp          !< default integer kind
[1306]71
72    SAVE
73
74 END MODULE kinds
Note: See TracBrowser for help on using the repository browser.