Deallocate all arrays. Safe to call on uninitialised instances.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(vcoord_t), | intent(inout) | :: | self |
subroutine vcoord_cleanup(self) !! Deallocate all arrays. Safe to call on uninitialised instances. class(vcoord_t), intent(inout) :: self if (allocated(self%dsig_target)) deallocate (self%dsig_target) if (allocated(self%z_ref)) deallocate (self%z_ref) self%nz = 0 end subroutine vcoord_cleanup