constructor Function

private pure function constructor(thickness, velocity, temperature, salinity) result(this)

Constructs a boundary condition object for an ice shelf based on the conditions used in Dallaston et al. (2015).

Arguments

Type IntentOptional AttributesName
real(kind=r8), intent(in) :: thickness

The water thickness at the inflowing plume boundary

real(kind=r8), intent(in), dimension(2):: velocity

The longitudinal water velocity at the inflowing plume boundary

real(kind=r8), intent(in) :: temperature

The water temperature at the inflowing plume boundary

real(kind=r8), intent(in) :: salinity

The water salinity at the inflowing plume boundary

Return Value type(simple_plume_boundary)


Called by

proc~~constructor~13~~CalledByGraph proc~constructor~13 constructor interface~simple_plume_boundary simple_plume_boundary interface~simple_plume_boundary->proc~constructor~13

Contents

Source Code


Source Code

  pure function constructor(thickness, velocity, temperature, salinity) &
                                                           result(this)
    !* Author: Chris MacMackin
    !  Date: November 2016
    !
    ! Constructs a boundary condition object for an ice shelf based on
    ! the conditions used in Dallaston et al. (2015).
    !
    real(r8), intent(in)               :: thickness
      !! The water thickness at the inflowing plume boundary
    real(r8), dimension(2), intent(in) :: velocity
      !! The longitudinal water velocity at the inflowing plume boundary
    real(r8), intent(in)               :: temperature
      !! The water temperature at the inflowing plume boundary
    real(r8), intent(in)               :: salinity
      !! The water salinity at the inflowing plume boundary
    type(simple_plume_boundary)        :: this
    this%thickness = thickness
    this%velocity = velocity
    this%temperature = temperature
    this%salinity = salinity
  end function constructor