Clean up allocated memory
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(sw_data_type), | intent(inout) | :: | me |
subroutine sw_cleanup(me) class(sw_data_type), intent(inout) :: me if (allocated(me%mjd)) deallocate(me%mjd) if (allocated(me%f107_obs)) deallocate(me%f107_obs) if (allocated(me%f107_adj)) deallocate(me%f107_adj) if (allocated(me%f107a_obs_ctr)) deallocate(me%f107a_obs_ctr) if (allocated(me%f107a_adj_ctr)) deallocate(me%f107a_adj_ctr) if (allocated(me%kp)) deallocate(me%kp) if (allocated(me%ap_avg)) deallocate(me%ap_avg) me%initialized = .false. me%n_records = 0 me%warn_epoch_before = .true. me%warn_epoch_after = .true. end subroutine sw_cleanup