An abstract type to which procedures for getting the ambient ocean conditions are to be specified. The descendent types can contain whatever data is needed to compute the result.
Returns the ambient ocean temperature
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ambient_conditions), | intent(in) | :: | this | |||
class(scalar_field), | intent(in) | :: | depth | A field containing the depths at which the ambient conditions are to be calculated. |
||
real(kind=r8), | intent(in) | :: | t | The time at which the ambient conditions are to be calculated. |
A field containing the ambient conditions at the depth specified for each location.
Returns the ambient ocean temperature
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ambient_conditions), | intent(in) | :: | this | |||
class(scalar_field), | intent(in) | :: | depth | A field containing the depths at which the ambient conditions are to be calculated. |
||
real(kind=r8), | intent(in) | :: | t | The time at which the ambient conditions are to be calculated. |
A field containing the ambient conditions at the depth specified for each location.
type, abstract, public :: ambient_conditions
!* Author: Chris MacMackin
! Date: April 2016
!
! An abstract type to which procedures for getting the ambient ocean
! conditions are to be specified. The descendent types can contain
! whatever data is needed to compute the result.
!
contains
procedure(get_property), deferred :: ambient_temperature
!! Returns the ambient ocean temperature
procedure(get_property), deferred :: ambient_salinity
!! Returns the ambient ocean temperature
end type ambient_conditions