static_plume_state_vector Function

private function static_plume_state_vector(this) result(state_vector)

Returns the state vector for the current state of the plume. This takes the form of a 1D array.

Arguments

Type IntentOptional AttributesName
class(static_plume), intent(in) :: this

Return Value real(kind=r8), dimension(:),allocatable

The state vector describing the plume.


Contents


Source Code

  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