forked from QcmPlab/CDMFT-LANC-ED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathED_GREENS_FUNCTIONS.f90
100 lines (83 loc) · 1.83 KB
/
ED_GREENS_FUNCTIONS.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
MODULE ED_GREENS_FUNCTIONS
USE ED_GF_SHARED
USE ED_GF_NORMAL
!USE ED_GF_CHISPIN
!
implicit none
private
public :: buildGf_impurity
!public :: buildChi_impurity
contains
!+------------------------------------------------------------------+
! GF CALCULATIONS
!+------------------------------------------------------------------+
subroutine buildGF_impurity()
!
call allocate_grids
!
impGmats=zero
impGreal=zero
!
impSmats = zero
impSreal = zero
!
impG0mats=zero
impG0real=zero
!
!
write(LOGfile,"(A)")"Get impurity Greens functions:"
call build_gf_normal()
call build_sigma_normal()
!
if(MPIMASTER)then
if(ed_print_Sigma)call ed_print_impSigma()
if(ed_print_G)call ed_print_impG()
if(ed_print_G0)call ed_print_impG0()
endif
!
call deallocate_grids
!
end subroutine buildgf_impurity
!+------------------------------------------------------------------+
! SUSCEPTIBILITY CALCULATIONS
!+------------------------------------------------------------------+
!subroutine buildChi_impurity()
!!
!call allocate_grids
!!
!!
!!BUILD SPIN SUSCEPTIBILITY
!spinChi_tau=zero
!spinChi_w=zero
!spinChi_iv=zero
!call build_chi_spin()
!!
!!
!! !BUILD CHARGE SUSCEPTIBILITY
!! densChi_tau=zero
!! densChi_w=zero
!! densChi_iv=zero
!! densChi_mix_tau=zero
!! densChi_mix_w=zero
!! densChi_mix_iv=zero
!! densChi_tot_tau=zero
!! densChi_tot_w=zero
!! densChi_tot_iv=zero
!! call build_chi_dens()
!!
!!
!! !BUILD PAIR SUSCEPTIBILITY
!! pairChi_tau=zero
!! pairChi_w=zero
!! pairChi_iv=zero
!! call build_chi_pair()
!!
!!
!!PRINTING:
!if(MPIMASTER)call ed_print_impChi()
!!
!!
!call deallocate_grids
!!
!end subroutine buildChi_impurity
end MODULE ED_GREENS_FUNCTIONS