Returns a field containing the boundary values for the specified boundary location.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(plume_boundary), | intent(in) | :: | this | |||
integer, | intent(in) | :: | location | Which boundary information is to be provided for. The
boundary will be the one normal to dimension of number
|
function scalar_bound(this, location)
!* Author: Chris MacMackin
! Date: March 2017
!
! Returns a field containing the boundary values for the specified
! boundary location.
!
class(plume_boundary), intent(in) :: this
integer, intent(in) :: location
!! Which boundary information is to be provided for. The
!! boundary will be the one normal to dimension of number
!! `abs(boundary)`. If the argument is negative, then the lower
!! boundary is returned. If positive, then the upper boundary is
!! returned.
class(scalar_field), pointer :: scalar_bound
type(uniform_scalar_field) :: dummy
call dummy%allocate_scalar_field(scalar_bound)
scalar_bound = uniform_scalar_field(0.0_r8)
end function scalar_bound