Reset and deallocate variables in passed periodic spline
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(periodic_spline), | intent(inout) | :: | spl |
subroutine delete_periodic_spline (spl)
implicit none
type (periodic_spline), intent (in out) :: spl
spl%n = 0
spl%period = 0.0
if (allocated(spl%x)) deallocate (spl%x,spl%y)
if (allocated(spl%y2)) deallocate (spl%y2)
spl%valid = .false.
spl%tension = 1.0
end subroutine delete_periodic_spline