Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schur leads with additional self-energies are broken #250

Closed
pablosanjose opened this issue Mar 4, 2024 · 0 comments · Fixed by #251
Closed

Schur leads with additional self-energies are broken #250

pablosanjose opened this issue Mar 4, 2024 · 0 comments · Fixed by #251

Comments

@pablosanjose
Copy link
Owner

pablosanjose commented Mar 4, 2024

MWE:

julia> glead = LP.honeycomb() |> hopping(1) |> supercell((1,-1), region = r -> 0<=r[2]<=5) |> attach(nothing, cells = SA[5]) |> greenfunction(GS.Schur(boundary = 0));

julia> g = LP.honeycomb() |> hopping(1) |> supercell(region = r -> -6<=r[1]<=6 && 0<=r[2]<=5) |> attach(glead, region = r -> r[1] > 5.1) |> greenfunction
ERROR: ArgumentError: The contact surface has 6 sites, which doesn't match the 12 sites in the lead surface

The problem is SelfEnergy(hparent::AbstractHamiltonian, glead::GreenFunctionSchurLead; reverse = false, transform = missing, sites...), which builds lslead as a full unit cell, whereas lsparent just matches the surface of the lead unitcell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant