Debian Codegraph @

src/mbd_constants.f90

raw
1 ! This Source Code Form is subject to the terms of the Mozilla Public
2 ! License, v. 2.0. If a copy of the MPL was not distributed with this
3 ! file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 module mbd_constants
6 !! Constants used throughout.
7
8 implicit none
9
10 integer, parameter :: dp = kind(0.d0)
11 real(dp), parameter :: pi = acos(-1.d0)
12 real(dp), parameter :: ang = 1.8897259886d0
13 !! Value of angstrom in atomic units
14
15 integer, parameter :: MBD_EXC_NEG_EIGVALS = 1
16 !! Negative eigenvalue exception
17 integer, parameter :: MBD_EXC_NEG_POL = 2
18 !! Negative polarizability exception
19 integer, parameter :: MBD_EXC_LINALG = 3
20 !! Exception in LAPACK or ScaLAPACK
21 integer, parameter :: MBD_EXC_UNIMPL = 4
22 !! Functionality is not implemented
23 integer, parameter :: MBD_EXC_DAMPING = 5
24 !! Damping-function exception
25 integer, parameter :: MBD_EXC_INPUT = 6
26 !! Invalid input
27
28 integer, parameter :: MBD_LOG_LVL_DEBUG = -1
29 integer, parameter :: MBD_LOG_LVL_INFO = 0
30 integer, parameter :: MBD_LOG_LVL_WARN = 1
31 integer, parameter :: MBD_LOG_LVL_ERROR = 2
32
33 real(dp), parameter :: ZERO_REAL = 0d0
34 complex(dp), parameter :: ZERO_COMPLEX = (0d0, 0d0)
35 complex(dp), parameter :: IMI = (0d0, 1d0)
36
37 end module