counts the energetically accessible levels in the basis
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=int32), | public | :: | level_index_1_ |
function count_open_basis_levels() result(open_)
!! counts the energetically accessible levels in the basis
!---------------------------------------------------------------------!
integer(int32) :: open_, level_index_1_
!---------------------------------------------------------------------!
open_ = 0
do level_index_1_ = 1, number_of_basis_levels
if (is_open(internal_energies(level_index_1_))) open_ = open_ + 1
enddo
!---------------------------------------------------------------------!
end function count_open_basis_levels