Changeset 1682 for palm/trunk/SOURCE/mod_kinds.f90
- Timestamp:
- Oct 7, 2015 11:56:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/mod_kinds.f90
r1320 r1682 1 MODULE kinds 2 1 !> @file mod_kinds.f90 3 2 !--------------------------------------------------------------------------------! 4 3 ! This file is part of PALM. … … 20 19 ! Current revisions: 21 20 ! ------------------ 22 ! 21 ! Code annotations made doxygen readable 23 22 ! 24 23 ! Former revisions: … … 31 30 ! Description: 32 31 ! ------------ 33 ! Standard kind definitions34 ! wp (working precision) and iwp (integer working precision) are the kinds35 ! used by default in all variable declarations.36 ! By default, PALM is using wp = dp (64bit), and iwp = isp (32bit).37 ! If you like to switch to other precision, then please set wp/iwp38 ! appropriately by assigning other kinds below.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. 39 38 !------------------------------------------------------------------------------! 39 MODULE kinds 40 40 41 41 42 IMPLICIT NONE … … 43 44 ! 44 45 !-- Floating point kinds 45 INTEGER, PARAMETER :: sp = 4 ! :single precision (32 bit)46 INTEGER, PARAMETER :: dp = 8 ! :double precision (64 bit)46 INTEGER, PARAMETER :: sp = 4 !< single precision (32 bit) 47 INTEGER, PARAMETER :: dp = 8 !< double precision (64 bit) 47 48 48 49 ! 49 50 !-- Integer kinds 50 INTEGER, PARAMETER :: isp = SELECTED_INT_KIND( 9 ) ! :single precision (32 bit)51 INTEGER, PARAMETER :: idp = SELECTED_INT_KIND( 14 ) ! :double precision (64 bit)51 INTEGER, PARAMETER :: isp = SELECTED_INT_KIND( 9 ) !< single precision (32 bit) 52 INTEGER, PARAMETER :: idp = SELECTED_INT_KIND( 14 ) !< double precision (64 bit) 52 53 53 54 ! 54 55 !-- Set kinds to be used as defaults 55 INTEGER, PARAMETER :: wp = dp ! :default real kind56 INTEGER, PARAMETER :: iwp = isp ! :default integer kind56 INTEGER, PARAMETER :: wp = dp !< default real kind 57 INTEGER, PARAMETER :: iwp = isp !< default integer kind 57 58 58 59 SAVE
Note: See TracChangeset
for help on using the changeset viewer.