Return the scheme number in the list of supported schemes.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(integrator_adams_bashforth_moulton), | intent(in) | :: | self | Integrator. |
||
character(len=*), | intent(in) | :: | scheme | Selected scheme. |
Scheme number in the list of supported schemes.
elemental function scheme_number(self, scheme)
!< Return the scheme number in the list of supported schemes.
class(integrator_adams_bashforth_moulton), intent(in) :: self !< Integrator.
character(*), intent(in) :: scheme !< Selected scheme.
integer(I_P) :: scheme_number !< Scheme number in the list of supported schemes.
integer(I_P) :: s !< Counter.
scheme_number = 0
do s=lbound(supported_schemes_, dim=1), ubound(supported_schemes_, dim=1)
if (trim(adjustl(scheme)) == trim(adjustl(supported_schemes_(s)))) then
scheme_number = s
exit
endif
enddo
endfunction scheme_number