Destructor for a linear_interp_3d class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_3d), | intent(inout) | :: | me |
pure elemental subroutine destroy_3d(me) implicit none class(linear_interp_3d),intent(inout) :: me if (allocated(me%f)) deallocate(me%f) if (allocated(me%x)) deallocate(me%x) if (allocated(me%y)) deallocate(me%y) if (allocated(me%z)) deallocate(me%z) me%ilox = 1 me%iloy = 1 me%iloz = 1 me%initialized = .false. end subroutine destroy_3d