Check if a scheme support fast mode integrate.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | scheme | Scheme name. |
||
class(integrator_object), | intent(in) | :: | integrator | Integrator instance. |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
subroutine check_scheme_has_fast_mode(scheme, integrator)
!< Check if a scheme support fast mode integrate.
character(*), intent(in) :: scheme !< Scheme name.
class(integrator_object), intent(in) :: integrator !< Integrator instance.
if (.not.integrator%has_fast_mode()) then
write(stderr, '(A)') 'error: '//trim(adjustl(scheme))//' has not fast integrate mode!'
stop
endif
endsubroutine check_scheme_has_fast_mode