check if the number of channels is the same in body-fixed and space-fixed frames
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | number_of_channels_bf |
number of channels in the body-fixed frame |
||
integer(kind=int32), | intent(in) | :: | number_of_channels_sf |
number of channels in the space-fixed frame |
||
character(len=*), | intent(in) | :: | parity_block |
"even" or "odd", for printing purposes |
subroutine check_number_of_channels(number_of_channels_bf, &
number_of_channels_sf, parity_block)
!! check if the number of channels is the same in body-fixed
!! and space-fixed frames
!---------------------------------------------------------------------!
integer(int32), intent(in) :: number_of_channels_bf
!! number of channels in the body-fixed frame
integer(int32), intent(in) :: number_of_channels_sf
!! number of channels in the space-fixed frame
character(len=*), intent(in) :: parity_block
!! "even" or "odd", for printing purposes
!---------------------------------------------------------------------!
if (number_of_channels_bf /= number_of_channels_sf) then
call write_error("Different number of channels in "// parity_block &
// " block (BF = " // trim(adjustl(integer_to_character( &
number_of_channels_bf))) // ", SF = " // trim(adjustl( &
integer_to_character(number_of_channels_sf))) // "); check " &
// "set_number_of_channels")
endif
end subroutine check_number_of_channels