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