Returns the number of elements in the plume's state vector. This is the size of the vector returned by state_vector and taken as an argument by update.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(plume), | intent(in) | :: | this |
The number of elements in the plume's state vector.
function plume_data_size(this)
!* Author: Christopher MacMackin
! Date: August 2016
!
! Returns the number of elements in the plume's state vector.
! This is the size of the vector returned by
! [[plume(type):state_vector]] and taken as an argument by
! [[plume(type):update]].
!
class(plume), intent(in) :: this
integer :: plume_data_size
!! The number of elements in the plume's state vector.
plume_data_size = this%thickness%raw_size() + this%velocity%raw_size() + &
this%velocity_dx%raw_size() + this%temperature%raw_size() + &
this%temperature_dx%raw_size() + this%salinity%raw_size() + &
this%salinity_dx%raw_size()
#ifdef DEBUG
call logger%debug('plume%data_size','Plume shelf has '// &
trim(str(plume_data_size))//' elements '// &
'in its state vector.')
#endif
end function plume_data_size