Skip to content

Commit 565292c

Browse files
committed
2 parents 43940cf + 744d762 commit 565292c

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Project.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TightBindingToolkit"
22
uuid = "2233325a-6eb3-486f-aff0-670e0939fa7e"
33
authors = ["Anjishnu Bose", "Sreekar Voleti", "Samuel Vadnais"]
4-
version = "2.3.3"
4+
version = "2.3.4"
55

66
[deps]
77
Bijections = "e2ed5e7c-b2de-5872-ae92-c73ca462fb04"
@@ -29,8 +29,8 @@ StatsBase = "^0.34"
2929
TensorCast = "^0.4"
3030
Tullio = "^0.3"
3131
Bijections = "^0.1"
32-
julia = "^1.7, ^1.9"
33-
LinearAlgebra = "^1.7, ^1.9"
32+
julia = "^1.6, ^1.9"
33+
LinearAlgebra = "^1.6, ^1.9"
3434

3535
[extras]
3636
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

docs/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "0.27"
5+
Documenter = "0.27, 1"

src/BdGModel.jl

+5-2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Because of this, if you want to calculate the filling at a different chemical po
7575
Eks = reshape(getindex.(M.Ham.bands, Ref(1:N÷2)), prod(M.bz.gridSize))
7676
U11s = reshape(getindex.(M.Ham.states, Ref(1:N÷2), Ref(1:N÷2)), prod(M.bz.gridSize))
7777
U21s = reshape(getindex.(M.Ham.states, Ref(N÷2 + 1: N), Ref(1:N÷2)), prod(M.bz.gridSize))
78+
U12s = reshape(getindex.(M.Ham.states, Ref(1:N÷2), Ref(N÷2 + 1: N)) , prod(M.bz.gridSize))
79+
U22s = reshape(getindex.(M.Ham.states, Ref(N÷2 + 1: N), Ref(N÷2 + 1: N)) , prod(M.bz.gridSize))
7880

7981
nFs = DistFunction.(Eks; T=M.T, mu=0.0, stat=M.stat)
8082

@@ -134,7 +136,7 @@ Finding the Greens functions, and anomalous greens functions in momentum space a
134136
nFs = DistFunction.(Eks; T=M.T, mu=0.0, stat=M.stat)
135137

136138
@reduce Gk[k1][i, j] |= sum(l) ((conj(U11s[k1][i, l]) * U11s[k1][j, l] * nFs[k1][l])
137-
+ (conj(U12s[k1][i, l]) * U12s[k1][j, l] * (1 - nFs[k1][l])))
139+
+ (conj(U21s[k1][i, l]) * U21s[k1][j, l] * (1 - nFs[k1][l])))
138140

139141
@reduce Fk[k1][i, j] |= sum(l) ((conj(U11s[k1][i, l]) * U21s[k1][j, l] * nFs[k1][l])
140142
+ (conj(U12s[k1][i, l]) * U22s[k1][j, l] * (1 - nFs[k1][l])))
@@ -171,7 +173,8 @@ one-step function to find all the attributes in BdGModel after it has been init
171173
"""
172174
function SolveModel!(M::BdGModel ; mu_guess::Float64 = 2*M.Ham.bandwidth[1] + 2*M.filling * (M.Ham.bandwidth[2] - M.Ham.bandwidth[1]), get_correlations::Bool = true, get_gap::Bool = false, verbose::Bool = true, mu_tol::Float64 = 1e-3, filling_tol::Float64 = 1e-6)
173175
@assert M.Ham.is_BdG==true "Use other format for pure hopping Hamiltonian"
174-
176+
# println(mu_guess)
177+
# println(M.Ham.bandwidth)
175178
if M.filling<0 ##### Must imply that filling was not provided by user and hence needs to be calculated from given mu
176179
GetFilling!(M)
177180
else

0 commit comments

Comments
 (0)