Skip to content

Commit

Permalink
Better ordering for NNNs built with xy_nnn_hop
Browse files Browse the repository at this point in the history
This ensures consistent selection of NNNs links:

> For sublattice "A": odd correspond to anti-clock-wise hoppings,
  even to clock-wise ones.

> For sublattice "B": the reverse.
  • Loading branch information
beddalumia committed Sep 25, 2022
1 parent 7f0fd2e commit 7fbd8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xy_neighbors.f90
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pure function xy_nnn_hop(layout,S,i) result(Ni)
NN = xy_nn_hop(layout,S,i)
counter = 0
do j = 1,3
tmp = xy_nn_hop(layout,NN,j)
tmp = xy_nn_hop(layout,NN,j+i-1)
if(tmp/=S)then
counter = counter + 1
NNN(counter) = tmp
Expand Down

0 comments on commit 7fbd8d6

Please sign in to comment.