There is a small bug in the function nearest_neighbours(lattice::Union{InfiniteStrip,InfiniteCylinder,InfiniteHelix}). When one calls this function to get the nearest neighbouring bonds of a strip geometry, he will be given some errors.
The example is as follows:
If one prints the InfiniteStrip instance, the result is:
julia> for v in V
push!(V_list, v)
end
julia> print(V_list)
Any[InfiniteStrip(8, 8)[1, 1], InfiniteStrip(8, 8)[2, 1], InfiniteStrip(8, 8)[3, 1], InfiniteStrip(8, 8)[4, 1], InfiniteStrip(8, 8)[5, 1],
InfiniteStrip(8, 8)[6, 1], InfiniteStrip(8, 8)[7, 1], InfiniteStrip(8, 8)[8, 1]]
Since in nearest_neighbours(lattice::Union{InfiniteStrip,InfiniteCylinder,InfiniteHelix}) we will add a vertex in the InfiniteStrip by (0, 1), the error will happen.
There is a small bug in the function
nearest_neighbours(lattice::Union{InfiniteStrip,InfiniteCylinder,InfiniteHelix})
. When one calls this function to get the nearest neighbouring bonds of a strip geometry, he will be given some errors. The example is as follows:If one prints the InfiniteStrip instance, the result is:
Since in
nearest_neighbours(lattice::Union{InfiniteStrip,InfiniteCylinder,InfiniteHelix})
we will add a vertex in the InfiniteStrip by (0, 1), the error will happen.