Locates a Lagrangian object on an external grid. Returns the location of the cell containing the object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(lagrangian_obj), | intent(in) | :: | this |
A Lagrangian object |
||
| class(block_obj), | intent(in) | :: | block |
External block |
Result
pure function lagrangian_obj_Locate(this,block) result (cell) !> Locates a Lagrangian object on an external grid. Returns the location ! of the cell containing the object. implicit none class(lagrangian_obj), intent(in) :: this !! A Lagrangian object class(block_obj), intent(in) :: block !! External block integer :: cell(3) !! Result cell = block%GetOwningCell(this%p) return end function lagrangian_obj_Locate