Makes sure bounds represent a plane.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | xlo(3) |
Lower left corner |
||
| real(kind=wp), | intent(in) | :: | xhi(3) |
Upper right corner |
True, if bounds represent a plane
pure function bc_set_CheckBounds(xlo,xhi) result(val) !> Makes sure bounds represent a plane. real(wp), intent(in) :: xlo(3) !! Lower left corner real(wp), intent(in) :: xhi(3) !! Upper right corner logical :: val !! True, if bounds represent a plane ! Work variables real(wp):: vol ! Compute volume of this region vol = (xhi(1)-xlo(1))*(xhi(2)-xlo(2))*(xhi(3)-xlo(3)) if (vol.eq.0) then val = .true. else val = .false. end if end function bc_set_CheckBounds