Destroy field.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(euler_1d), | intent(inout) | :: | self | Euler field. |
pure subroutine destroy(self)
!< Destroy field.
class(euler_1d), intent(inout) :: self !< Euler field.
self%weno_order = 0
self%Ni = 0
self%Ng = 0
self%Dx = 0._R8P
if (allocated(self%U)) deallocate(self%U)
if (allocated(self%BC_L)) deallocate(self%BC_L)
if (allocated(self%BC_R)) deallocate(self%BC_R)
if (allocated(self%interpolator)) deallocate(self%interpolator)
if (allocated(self%riemann_solver)) deallocate(self%riemann_solver)
endsubroutine destroy