Skip to main content

Initiate

This routine Initiates the bounding box.

note

Initiate by specifying the limits:

CALL Initiate(obj, nsd, lim)

You can also use the function called BoundingBox.

ans = BoundingBox(nsd, lim)
note

Initiate by copying:

CALL Initiate(obj, Anotherobj)

You can also use the function called BoundingBox.

ans = BoundingBox(Anotherobj)
note

You can also pass the node coordiantes xij to BoundingBox function.

ans = BoundingBox(xij)
note

You can also use BoundingBox_Pointer to get the pointer to a bounding box.

Interface 1

Initiate by limit.

INTERFACE
MODULE PURE SUBROUTINE Initiate(obj, nsd, lim)
CLASS(BoundingBox_), INTENT(INOUT) :: obj
!! Instance of bounding box
INTEGER(I4B), INTENT(IN) :: NSD
!! Spatial dimension
REAL(DFP), INTENT(IN) :: lim(6)
!! Extent of bounding box
END SUBROUTINE Initiate
END INTERFACE

Interface 2

INTERFACE
MODULE PURE SUBROUTINE Initiate(obj, Anotherobj)
CLASS(BoundingBox_), INTENT(INOUT) :: obj
CLASS(BoundingBox_), INTENT(IN) :: Anotherobj
END SUBROUTINE Initiate
END INTERFACE

Interface 3

INTERFACE
MODULE PURE FUNCTION BoundingBox(nsd, lim) RESULT(ans)
TYPE(BoundingBox_) :: ans
INTEGER(I4B), INTENT(IN) :: nsd
REAL(DFP), INTENT(IN) :: lim(6)
END FUNCTION BoundingBox
END INTERFACE

Interface 4

INTERFACE
MODULE PURE FUNCTION BoundingBox(Anotherobj) RESULT(ans)
TYPE(BoundingBox_) :: ans
CLASS(BoundingBox_), INTENT(IN) :: Anotherobj
END FUNCTION BoundingBox
END INTERFACE

Interface 5

INTERFACE
MODULE PURE FUNCTION BoundingBox(xij) RESULT(ans)
REAL(DFP), INTENT(IN) :: xij(:, :)
!! Nodal coordinates xij( 1:nsd, 1:tnodes )
TYPE(BoundingBox_) :: ans
!!
END FUNCTION BoundingBox
END INTERFACE

Interface 6

INTERFACE
MODULE FUNCTION BoundingBox_Pointer(nsd, lim) RESULT(ans)
CLASS(BoundingBox_), POINTER :: ans
INTEGER(I4B), INTENT(IN) :: nsd
REAL(DFP), INTENT(IN) :: lim(6)
END FUNCTION BoundingBox_Pointer
END INTERFACE

Interface 7

INTERFACE
MODULE FUNCTION BoundingBox_Pointer(Anotherobj) RESULT(ans)
CLASS(BoundingBox_), POINTER :: ans
CLASS(BoundingBox_), INTENT(IN) :: Anotherobj
END FUNCTION BoundingBox_Pointer
END INTERFACE