-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathddcommon.f90
76 lines (74 loc) · 3.03 KB
/
ddcommon.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
! ------------------ ddcommon_v2 ---------------------------------------------
! history:
! 12.08.11 (BTD) added DIPINT to DDCOMMON_0
! 13.01.04 (BTD) added AK2OLD_B,AK3OLD_B,WOLD_B to DDCOMMON_0
! end history
!-----------------------------------------------------------------------------
MODULE DDCOMMON_0
USE DDPRECISION,ONLY: WP
INTEGER,SAVE:: IBSELF,IDIPINT,NGRID
REAL(WP),SAVE:: AK2OLD,AK2OLD_B,AK3OLD,AK3OLD_B,WOLD,WOLD_B
CHARACTER*60:: CFLPAR
! purpose of this module is to
! 1. Supply CFLPAR to subroutine DDSCAT
! 2. Reset values of AK2OLD,AK3OLD,WOLD between calls to DDSCAT
! to force recalculation of A_ij by subroutine ESELF
! (If not done, earlier A_ij values might be inadvertently reused).
! 3. Communicate NGRID calculated in ESELF to other routines
! 4. Communicate DIPINT (specifying dipole interaction) to other routines.
! 5. Hold values of AK2OLD_B,AK3OLD_B,WOLD_B
! (analogs of AK2OLD,AK3OLD,WOLD used by ESELF)
END MODULE DDCOMMON_0
!-----------------------------------------------------------------------------
MODULE DDCOMMON_1
USE DDPRECISION,ONLY: WP
REAL(WP) :: &
AK_TF(3), &
DX(3)
END MODULE DDCOMMON_1
!------------------------------------------------------------------------------
MODULE DDCOMMON_2
USE DDPRECISION,ONLY: WP
COMPLEX(WP),ALLOCATABLE :: CXADIA(:)
END MODULE DDCOMMON_2
!------------------------------------------------------------------------------
MODULE DDCOMMON_3
USE DDPRECISION,ONLY: WP
COMPLEX(WP),ALLOCATABLE :: CXZC(:,:,:,:)
END MODULE DDCOMMON_3
!------------------------------------------------------------------------------
MODULE DDCOMMON_4
USE DDPRECISION,ONLY: WP
COMPLEX(WP),ALLOCATABLE :: CXZW(:,:,:,:)
END MODULE DDCOMMON_4
!------------------------------------------------------------------------------
MODULE DDCOMMON_5
INTEGER*2,ALLOCATABLE :: IOCC(:)
END MODULE DDCOMMON_5
!------------------------------------------------------------------------------
MODULE DDCOMMON_6
USE DDPRECISION,ONLY: WP
INTEGER :: MXNATF,MXNXF,MXNYF,MXNZF,NAT,NAT3,NAT0,NX,NY,NZ,MXN3F, &
IDVOUT,IPBC
REAL(WP) :: GAMMA,PYD,PZD
END MODULE DDCOMMON_6
!------------------------------------------------------------------------------
MODULE DDCOMMON_7
USE DDPRECISION,ONLY: WP
COMPLEX(WP),ALLOCATABLE :: CXAOFF(:,:)
END MODULE DDCOMMON_7
!------------------------------------------------------------------------------
MODULE DDCOMMON_8
CHARACTER(6) :: CMDFFT
END MODULE DDCOMMON_8
!------------------------------------------------------------------------------
MODULE DDCOMMON_9
USE DDPRECISION,ONLY: WP
INTEGER :: IDVOUT2,ITERMX,ITERN
REAL(WP) :: ERRSCAL
END MODULE DDCOMMON_9
!------------------------------------------------------------------------------
MODULE DDCOMMON_10
INTEGER :: MYID
END MODULE DDCOMMON_10
!------------------------------------------------------------------------------