Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(chain) | :: | this | ||||
integer, | intent(in) | :: | k_vec(3) |
logical function inside_bz_chain(this, k_vec)
class(chain) :: this
integer, intent(in) :: k_vec(3)
! the chain goes as -Lx/2+1, +2, .. Lx/2
inside_bz_chain = .false.
if (k_vec(1) >= (-(this%length + 1) / 2 + 1) .and. &
k_vec(1) <= this%length / 2) inside_bz_chain = .true.
end function inside_bz_chain