getInterpolationBnds Subroutine

public subroutine getInterpolationBnds(r_lat, lo_x, up_x, lo_y, up_y, lo_z, up_z)

getInterpolationBnds is used to determine which cells to interpolate fluid quantities from for a particle positioned at its coordOfOrigin + r_lat. The 8 cells obtained are the cells whose barycenter forms the tightest bounding cube around the particle.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: r_lat(3)
integer, intent(out) :: lo_x
integer, intent(out) :: up_x
integer, intent(out) :: lo_y
integer, intent(out) :: up_y
integer, intent(out) :: lo_z
integer, intent(out) :: up_z