xy_nn_hop Function

public pure function xy_nn_hop(layout, S, i) result(Ni)

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.

Arguments

Type IntentOptional Attributes Name
type(unit_cell), intent(in) :: layout
type(xy_site), intent(in) :: S
integer, intent(in) :: i

Return Value type(xy_site)


Calls

proc~~xy_nn_hop~~CallsGraph proc~xy_nn_hop xy_neighbors::xy_nn_hop proc~ith_a_offset xy_neighbors::ith_A_offset proc~xy_nn_hop->proc~ith_a_offset proc~ith_b_offset xy_neighbors::ith_B_offset proc~xy_nn_hop->proc~ith_b_offset

Called by

proc~~xy_nn_hop~~CalledByGraph proc~xy_nn_hop xy_neighbors::xy_nn_hop proc~xy_nnn_hop xy_neighbors::xy_nnn_hop proc~xy_nnn_hop->proc~xy_nn_hop