Applies periodic boundary conditions.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(lagrangian_set), | intent(inout) | :: | this |
A set of Lagrangian objects |
pure subroutine lagrangian_set_ApplyPeriodicity(this) !> Applies periodic boundary conditions. implicit none class(lagrangian_set), intent(inout) :: this !! A set of Lagrangian objects ! Work variable integer :: dir integer :: n do dir=1,3 if (this%block%periods(dir)) then do n=1,this%count_ this%p(n)%p(dir) = this%block%pmin(dir) + modulo(this%p(n)%p(dir)-this%block%pmin(dir),this%block%pmax(dir) - this%block%pmin(dir)) end do end if end do return end subroutine lagrangian_set_ApplyPeriodicity