print S-matrix on screen
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | sum_of_squares(:) |
array holding \(\sum_{\gamma^{\prime}}|S_{\gamma,\gamma^{\prime}}|^{2}\) for each \(\gamma\) |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=int32), | private | :: | channel_index_ |
subroutine print_sum_of_squares(sum_of_squares)
!! print S-matrix on screen
!---------------------------------------------------------------------!
real(dp), intent(in) :: sum_of_squares(:)
!! array holding
!! \\(\sum\_{\gamma^{\prime}}|S\_{\gamma,\gamma^{\prime}}|^{2}\\)
!! for each \\(\gamma\\)
!---------------------------------------------------------------------!
integer(int32) :: channel_index_
!---------------------------------------------------------------------!
call write_message(repeat(" ", 3)// "row" // repeat(" ", 12)// &
"sum(S**2)")
!---------------------------------------------------------------------!
do channel_index_ = 1, size(sum_of_squares)
call write_message(" " // &
trim(adjustl(integer_to_character(channel_index_, "(i5)"))) // &
repeat(" ", 8) // &
trim(adjustl(float_to_character(sum_of_squares(channel_index_), &
"(E15.8)"))))
enddo
!---------------------------------------------------------------------!
end subroutine print_sum_of_squares