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