Return the nearest neighbor of a lattice site, by hopping in the i-th direction. You can feed any i ∈ ℤ, but you can get only 3 inequivalent neighbors, depending on the label of the given site: "A" and "B" activate two different suitable sets of hopping directions. A lattice layout is required to build the concrete hopping vectors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(unit_cell), | intent(in) | :: | layout | |||
type(xy_site), | intent(in) | :: | S | |||
integer, | intent(in) | :: | i |