Reduces the coupling terms based on the existence of couplings.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=int32), | private | :: | coupling_index_ | ||||
integer(kind=int32), | private | :: | lambda_index_ | ||||
integer(kind=int32), | private | :: | r_index_ |
subroutine reduce_coupling_terms
!! Reduces the coupling terms based on the existence of couplings.
!---------------------------------------------------------------------!
integer(int32) :: lambda_index_, r_index_, coupling_index_
!---------------------------------------------------------------------!
do lambda_index_ = 1, number_of_legendre_indices
do r_index_ = 1, number_of_r_points
do coupling_index_ = 1, minimal_number_of_coupling_terms
coupling_terms(r_index_, lambda_index_, coupling_index_) = &
find_reduced_term(r_index_, lambda_index_, coupling_index_)
enddo
enddo
enddo
!---------------------------------------------------------------------!
end subroutine reduce_coupling_terms