ssht_types_mod.f90

Go to the documentation of this file.
00001 ! SSHT package to perform spin spherical harmonic transforms
00002 ! Copyright (C) 2011  Jason McEwen
00003 ! See LICENSE.txt for license details
00004 
00005 
00025 
00026 !------------------------------------------------------------------------------
00027 ! ssht_types_mod -- SSHT library types class
00028 !
00036 
00037 module ssht_types_mod
00038 
00039   implicit none
00040 
00041   private
00042 
00043 
00044   ! --------------------------------------
00045   ! Intrinsic type definitions
00046   ! --------------------------------------
00047 
00049   integer, public, parameter :: sp  = SELECTED_REAL_KIND(5,30)
00050 
00052   integer, public, parameter :: dp  = SELECTED_REAL_KIND(12,200)
00053 
00055   integer, public, parameter :: spc = KIND((1.0_sp, 1.0_sp))
00056 
00058   integer, public, parameter :: dpc = KIND((1.0_dp, 1.0_dp))
00059 
00060 
00061   ! --------------------------------------
00062   ! Tolerances
00063   ! --------------------------------------
00064 
00066   real(dp), public, parameter :: TOL_RELATIVE_REALITY = 1e-6
00067 
00068 
00069   ! --------------------------------------
00070   ! Constants
00071   ! --------------------------------------
00072 
00074   integer, public, parameter :: STRING_LEN = 256
00075 
00077   real(dp), public, parameter :: PI = 3.141592653589793238462643383279502884197_dp
00078 
00080   real(dp), public, parameter :: PION2 = 1.570796326794896619231321691639751442099_dp
00081 
00083   real(dp), public, parameter :: SQRT2 = 1.41421356237309504880168872420969807856967_dp
00084 
00086   complex(dpc), public, parameter :: I = (0.0_dp, 1.0_dp)
00087 
00088 
00089   ! --------------------------------------
00090   ! Prompt
00091   ! --------------------------------------
00092 
00094   character(len=*), public, parameter :: SSHT_PROMPT = '[ssht] '
00095 
00096 
00097 end module ssht_types_mod
Generated on Mon Oct 31 01:20:05 2011 by  doxygen 1.6.3