Reset and deallocate variables in passed spline
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(spline), | intent(inout) | :: | spl |
subroutine delete_spline (spl)
implicit none
type (spline), intent (in out) :: spl
spl%n = 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_spline