checks if a channel/level is energetically accessible (open) by comparing energy with total_energy
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | energy_ |
level/channel energy |
function is_open(energy_) result(is_open_)
!! checks if a channel/level is energetically accessible (open)
!! by comparing energy with total_energy
!---------------------------------------------------------------------!
real(dp), intent(in) :: energy_
!! level/channel energy
logical :: is_open_
!---------------------------------------------------------------------!
is_open_ = ( energy_ <= total_energy() )
!---------------------------------------------------------------------!
end function is_open