Given it say what the supercell id is
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ky_type), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | it |
function ky_is_from_it(self,it)
implicit none
class(ky_type), intent(inout) :: self
integer, intent(in) :: it
integer :: ky_is_from_it
integer :: is
ky_is_from_it=-1
do is=1,self%nsupercell
if(self%supercells(is)%has_it(it))then
ky_is_from_it=is
exit
endif
enddo
end function ky_is_from_it