You can make those different leads into a single one. Or add an extra site to each unit cell which has no hoppings to the next one, but a hopping within the unit cell.
On Wed, 23 Sep 2020 at 20:21, Sergey Slizovskiy <[email protected]> wrote: > > Dear Anton, > Thank you for your reply! I am unsure how to add hoppings between > different leads. I am even surprised that this is possible to do. > Or, did you mean adding extra fake "thickness" to a lead? > Best wishes, > Sergey > > On 23/09/2020 18:05, Anton Akhmerov wrote: > > Dear Sergey, > > > > That seems to be a bug in gauge that occurs when there are no hoppings > > within the lead unit cell. As a workaround I recommend to add hoppings > > connecting different 1D leads that have a magnitude of 0. I've opened > > an issue to track that: > > https://gitlab.kwant-project.org/kwant/kwant/-/issues/388 > > > > Best, > > Anton > > > > On Wed, 23 Sep 2020 at 17:44, Sergey Slizovskiy <[email protected]> wrote: > >> Dear Christoph, > >> Here is the minimal example giving a error I described. The system > >> is a 3-layer graphene and I add a couple of vertical 1D chains with > >> small hopping to the > >> main sample to model the STS tip. > >> Thank you, > >> Sergey > >> > >> > >> On 23/09/2020 15:52, Christoph Groth wrote: > >>> Sergey Slizovskiy wrote: > >>> > >>>> I am having a error with "gauge" when I am adding 1D leads (Chains) > >>>> to my 3D system. (I have both Chain leads, where I do not need gauge, > >>>> of course, > >>> Could you please provide a minimal self-contained script that allows to > >>> reproduce the problem? > >>> > >>> Christoph > >>> > >>>
