Returns the state vector for the current state of the ice shelf. This takes the form of a 1D array.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ice_shelf), | intent(in) | :: | this |
The state vector describing the ice shelf.
function shelf_state_vector(this) result(state_vector)
!* Author: Christopher MacMackin
! Date: April 2016
!
! Returns the state vector for the current state of the ice shelf.
! This takes the form of a 1D array.
!
class(ice_shelf), intent(in) :: this
real(r8), dimension(:), allocatable :: state_vector
!! The state vector describing the ice shelf.
state_vector = this%thickness%raw()
#ifdef DEBUG
call logger%debug('ice_shelf%state_vector','Returning state vector '// &
'for ice shelf.')
#endif
end function shelf_state_vector