[1682] | 1 | !> @file mod_kinds.f90 |
---|
[1306] | 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 | ! |
---|
[1310] | 16 | ! Copyright 1997-2014 Leibniz Universitaet Hannover |
---|
[1306] | 17 | !--------------------------------------------------------------------------------! |
---|
| 18 | ! |
---|
| 19 | ! Current revisions: |
---|
| 20 | ! ------------------ |
---|
[1683] | 21 | ! |
---|
| 22 | ! |
---|
[1306] | 23 | ! Former revisions: |
---|
| 24 | ! ----------------- |
---|
| 25 | ! $Id: mod_kinds.f90 1683 2015-10-07 23:57:51Z hoffmann $ |
---|
| 26 | ! |
---|
[1683] | 27 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
| 28 | ! Code annotations made doxygen readable |
---|
| 29 | ! |
---|
[1307] | 30 | ! 1306 2014-03-13 14:30:59Z raasch |
---|
[1306] | 31 | ! Initial revision |
---|
| 32 | ! |
---|
| 33 | ! Description: |
---|
| 34 | ! ------------ |
---|
[1682] | 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. |
---|
[1306] | 41 | !------------------------------------------------------------------------------! |
---|
[1682] | 42 | MODULE kinds |
---|
| 43 | |
---|
[1306] | 44 | |
---|
| 45 | IMPLICIT NONE |
---|
| 46 | |
---|
| 47 | ! |
---|
| 48 | !-- Floating point kinds |
---|
[1682] | 49 | INTEGER, PARAMETER :: sp = 4 !< single precision (32 bit) |
---|
| 50 | INTEGER, PARAMETER :: dp = 8 !< double precision (64 bit) |
---|
[1306] | 51 | |
---|
| 52 | ! |
---|
| 53 | !-- Integer kinds |
---|
[1682] | 54 | INTEGER, PARAMETER :: isp = SELECTED_INT_KIND( 9 ) !< single precision (32 bit) |
---|
| 55 | INTEGER, PARAMETER :: idp = SELECTED_INT_KIND( 14 ) !< double precision (64 bit) |
---|
[1306] | 56 | |
---|
| 57 | ! |
---|
| 58 | !-- Set kinds to be used as defaults |
---|
[1682] | 59 | INTEGER, PARAMETER :: wp = dp !< default real kind |
---|
| 60 | INTEGER, PARAMETER :: iwp = isp !< default integer kind |
---|
[1306] | 61 | |
---|
| 62 | SAVE |
---|
| 63 | |
---|
| 64 | END MODULE kinds |
---|