Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Anjishnubose/MeanFieldToolkit.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjishnubose committed Sep 15, 2023
2 parents 1e85f9c + 25443ad commit cd2c8d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BdGMFT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ module BDGMFT

function BdGMFT(bdgModel::BdGModel, HoppingBlock::ParamBlock{2, R}, PairingBlock::ParamBlock{2, S}, InteractionBlock::Vector{ParamBlock{T, Float64}} , HoppingDecomposition::Vector{Function}, PairingDecomposition::Vector{Function}, HoppingScaling::Dict{String, Float64}, PairingScaling::Dict{String, Float64} ; HoppingLabels::Dict{String, String} = Dict{String, String}("ij" => "Hopping", "ii" => "Hopping On-Site", "jj" => "Hopping On-Site"), PairingLabels::Dict{String, String} = Dict{String, String}("ij" => "Pairing", "ii" => "Pairing On-Site", "jj" => "Pairing On-Site")) where {T, R <: Union{Float64, ComplexF64}, S <: Union{Float64, ComplexF64}}

@assert isSameUnitCell( bdgModel.uc_hop, HoppingUC) "Inconsistency between Tight-Binding Unit Cell and hopping Expectation Unit Cell"
@assert isSameUnitCell(bdgModel.uc_pair, PairingUC) "Inconsistency between Pairing Unit Cell and pairing Expectation Unit Cell"
@assert IsSameUnitCell( bdgModel.uc_hop, HoppingUC) "Inconsistency between Tight-Binding Unit Cell and hopping Expectation Unit Cell"
@assert IsSameUnitCell(bdgModel.uc_pair, PairingUC) "Inconsistency between Pairing Unit Cell and pairing Expectation Unit Cell"

return new{T, R, S}(bdgModel, HoppingBlock, PairingBlock, InteractionBlock, HoppingDecomposition, PairingDecomposition, Float64[], HoppingScaling, PairingScaling, HoppingLabels, PairingLabels)

Expand Down Expand Up @@ -99,4 +99,4 @@ module BDGMFT



end
end

0 comments on commit cd2c8d6

Please sign in to comment.