Check variables read from namelist "potential"
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=int32), | public | :: | column_index_ | ||||
integer(kind=int32), | public | :: | legendre_index_ |
subroutine check_namelist_potential
!! Check variables read from namelist "potential"
!---------------------------------------------------------------------!
integer(int32) :: legendre_index_, column_index_
!---------------------------------------------------------------------!
do legendre_index_ = 1, number_of_legendre_indices
if (legendre_indices(legendre_index_) < 0) then
call incorrect_value("legendre_indices(" // &
integer_to_character(legendre_index_) // ")", &
legendre_indices(legendre_index_), input_unit)
endif
enddo
do column_index_ = 1, total_number_of_coupling_terms
if (vib_couplings(column_index_) < 0) then
call incorrect_value("vib_couplings(" // &
integer_to_character(column_index_) // ")", &
vib_couplings(column_index_), input_unit)
endif
if (rot_couplings(column_index_) < 0) then
call incorrect_value("rot_couplings(" // &
integer_to_character(column_index_) // ")", &
rot_couplings(column_index_), input_unit)
endif
if (vib_prime_couplings(column_index_) < 0) then
call incorrect_value("vp1pes(" // &
integer_to_character(column_index_) // ")", &
vib_prime_couplings(column_index_), input_unit)
endif
if (rot_prime_couplings(column_index_) < 0) then
call incorrect_value("rot_prime_couplings(" // &
integer_to_character(column_index_) // ")", &
rot_prime_couplings(column_index_), input_unit)
endif
enddo
end subroutine check_namelist_potential