Skip to content

Commit

Permalink
fix for case fock = nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Nov 21, 2024
1 parent 75e66fa commit 17cf46b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/meanfield.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function meanfield(g::GreenFunction{T,E}, args...;
Vf = sanitize_potential(fock)
U = onsite === missing ? T(Vh(zero(SVector{E,T}))) : T(onsite)
Uf = onsite === missing ? T(Vf(zero(SVector{E,T}))) : T(onsite)
Uf = fock === nothing ? zero(Uf) : Uf
B = blocktype(hamiltonian(g))
is_nambu_rotated´ = sanitize_nambu_rotated(namburotation, nambu, B)
Q = sanitize_charge(charge, B, nambu, is_nambu_rotated´)
Expand Down

0 comments on commit 17cf46b

Please sign in to comment.