Skip to content

Commit

Permalink
Updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjishnubose committed Jul 31, 2023
1 parent a8bfd84 commit 54b6e3d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
11 changes: 0 additions & 11 deletions src/BdGMFT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ module BDGMFT
PairingLookup = Lookup(bdgMFT.bdgModel.uc_pair)

for BondKey in keys(HoppingLookup)
# base, target, offset = BondKey

# index = mod.((-offset) , bdgMFT.bdgModel.bz.gridSize) .+ ones(Int64, length(offset))
# b1 = bdgMFT.bdgModel.uc_hop.localDim * (base - 1) + 1
# b2 = bdgMFT.bdgModel.uc_hop.localDim * (target - 1) + 1

G_ij = GetBondCoorelation(bdgMFT.bdgModel.Gr, BondKey..., bdgMFT.bdgModel.uc_hop, bdgMFT.bdgModel.bz)
t_ij = HoppingLookup[BondKey]
Expand All @@ -86,12 +81,6 @@ module BDGMFT

for BondKey in keys(PairingLookup)

# base, target, offset = BondKey

# index = mod.((-offset) , bdgMFT.bdgModel.bz.gridSize) .+ ones(Int64, length(offset))
# b1 = bdgMFT.bdgModel.uc_hop.localDim * (base - 1) + 1
# b2 = bdgMFT.bdgModel.uc_hop.localDim * (target - 1) + 1

F_ij = GetBondCoorelation(bdgMFT.bdgModel.Fr, BondKey..., bdgMFT.bdgModel.uc_pair, bdgMFT.bdgModel.bz)
p_ij = PairingLookup[BondKey]

Expand Down
6 changes: 1 addition & 5 deletions src/MFTIterator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ module MFTIter
strengths = Float64[]

for bond in param.unitBonds

# index = mod.((-bond.offset) , bz.gridSize) .+ ones(Int64, length(bond.offset))
# ##### TODO : the extra - sign in offset is because right now G[r] = <f^{dagger}_0 . f_{-r}> ===> NEED TO FIX THIS
# b1 = uc.localDim * (bond.base - 1) + 1
# b2 = uc.localDim * (bond.target - 1) + 1
##### TODO : the extra - sign in offset is because right now G[r] = <f^{dagger}_0 . f_{-r}> ===> NEED TO FIX THIS

G = GetBondCoorelation(Gr, bond, uc, bz)

Expand Down
8 changes: 1 addition & 7 deletions src/TightBindingMFT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,13 @@ module TBMFT
end

##### /// TODO: Add Free Hopping energies also
##### TODO: Test!!!!
##### /// TODO: Test!!!!
function GetMFTEnergy(tbMFT::TightBindingMFT{T}) :: Float64 where {T}

Energy = 0.0
lookup = Lookup(tbMFT.TightBindingModel.uc)

for BondKey in keys(lookup)
# base, target, offset = BondKey

# index = mod.((-offset) , tbMFT.TightBindingModel.bz.gridSize) .+ ones(Int64, length(offset))
# ##### TODO : the extra - sign in offset is because right now G[r] = <f^{dagger}_0 . f_{-r}> ===> NEED TO FIX THIS
# b1 = tbMFT.TightBindingModel.uc.localDim * (base - 1) + 1
# b2 = tbMFT.TightBindingModel.uc.localDim * (target - 1) + 1

G_ij = GetBondCoorelation(tbMFT.TightBindingModel.Gr, BondKey..., tbMFT.TightBindingModel.uc, tbMFT.TightBindingModel.bz)

Expand Down

0 comments on commit 54b6e3d

Please sign in to comment.