ocean_dyn_destroy Subroutine

private subroutine ocean_dyn_destroy(this)

Type Bound

ocean_dyn_t

Arguments

Type IntentOptional Attributes Name
class(ocean_dyn_t), intent(inout) :: this

Calls

proc~~ocean_dyn_destroy~~CallsGraph proc~ocean_dyn_destroy ocean_dyn_t%ocean_dyn_destroy proc~barotropic_workstate_destroy barotropic_workstate_t%barotropic_workstate_destroy proc~ocean_dyn_destroy->proc~barotropic_workstate_destroy

Source Code

   subroutine ocean_dyn_destroy(this)
      class(ocean_dyn_t), intent(inout) :: this
      this%is_init = .false.
      call this%bt_work%destroy()
      if (allocated(this%bt_wide)) then
         call this%bt_wide%destroy()
         deallocate (this%bt_wide)
      end if
      if (allocated(this%avr_u0)) deallocate (this%avr_u0)
      if (allocated(this%avr_v0)) deallocate (this%avr_v0)
   end subroutine ocean_dyn_destroy