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 <ser...@gmail.com> 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
> >
> >
>

Reply via email to