Checks if the input value equals 0; used in the calculation of off-diagonal elements of the centrifugal matrix; see Eq. 5 in "Coupling Matrix" section
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | omega_ |
input value which is to be compared with 0 |
(output) 1 if omega_ = 0, 0 otherwise
function delta_for_zero_omega(omega_) result(delta_)
!! Checks if the input value equals 0; used in the calculation
!! of off-diagonal elements of the centrifugal matrix; see
!! Eq. 5 in "Coupling Matrix" section
!---------------------------------------------------------------------!
integer(int32), intent(in) :: omega_
!! input value which is to be compared with 0
real(dp) :: delta_
!! (output) 1 if omega_ = 0, 0 otherwise
!---------------------------------------------------------------------!
if (omega_ == 0) then
delta_ = 1.0_dp
else
delta_ = 0.0_dp
endif
!---------------------------------------------------------------------!
end function delta_for_zero_omega