Localizes all Lagrangian object on the grid. For each Lagrangian object in the set, this subroutine finds the cell (staggering=0) where this object is located and updates its cell indices.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(lagrangian_set), | intent(inout) | :: | this |
A set of Lagrangian objects |
pure subroutine lagrangian_set_Localize(this) !> Localizes all Lagrangian object on the grid. ! For each Lagrangian object in the set, this subroutine finds ! the cell (staggering=0) where this object is located and ! updates its cell indices. implicit none class(lagrangian_set), intent(inout) :: this !! A set of Lagrangian objects ! Work variables integer :: n do n=1,this%count_ this%p(n)%c = this%block%GetOwningCell(this%p(n)%p) end do return end subroutine lagrangian_set_Localize