Destoy the integrator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tvd_runge_kutta_integrator), | intent(inout) | :: | self | Integrator. |
elemental subroutine destroy_rk(self)
!---------------------------------------------------------------------------------------------------------------------------------
!< Destoy the integrator.
!---------------------------------------------------------------------------------------------------------------------------------
class(tvd_runge_kutta_integrator), intent(INOUT) :: self !< Integrator.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
self%stages = 0
if (allocated(self%alph)) deallocate(self%alph)
if (allocated(self%beta)) deallocate(self%beta)
if (allocated(self%gamm)) deallocate(self%gamm)
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine destroy_rk