Destroy the integrator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(integrator_multistage_multistep_object), | intent(inout) | :: | self | Integrator. |
elemental subroutine destroy_multistage_multistep(self)
!< Destroy the integrator.
class(integrator_multistage_multistep_object), intent(inout) :: self !< Integrator.
call self%destroy_abstract
self%registers_stages = 0
self%registers_steps = 0
self%stages = 0
self%steps = -1
self%autoupdate = .false.
self%iterations = 0
if (allocated(self%Dt)) deallocate(self%Dt)
if (allocated(self%t)) deallocate(self%t)
if (allocated(self%previous)) deallocate(self%previous)
if (allocated(self%stage)) deallocate(self%stage)
if (allocated(self%buffer)) deallocate(self%buffer)
endsubroutine destroy_multistage_multistep