block_obj_Locate Function

private impure function block_obj_Locate(this, p) result(rank)

Uses

  • proc~~block_obj_locate~~UsesGraph proc~block_obj_locate block_obj%block_obj_Locate mpi_f08 mpi_f08 proc~block_obj_locate->mpi_f08

Return block ID and rank of the block where the point is located using a binary search alogirthm. Note that this function assumes that the point is within the domain, i.e., (pmin <= p <= pmax) and that any treatment for periodicity has been previously applied.

Type Bound

block_obj

Arguments

Type IntentOptional Attributes Name
class(block_obj), intent(in) :: this

A block object

real(kind=wp), intent(in) :: p(3)

Position to locate

Return Value integer

MPI rank


Calls

proc~~block_obj_locate~~CallsGraph proc~block_obj_locate block_obj%block_obj_Locate mpi_cart_rank mpi_cart_rank proc~block_obj_locate->mpi_cart_rank

Called by

proc~~block_obj_locate~~CalledByGraph proc~block_obj_locate block_obj%block_obj_Locate proc~lagrangian_set_getownerrankbyblock lagrangian_set%lagrangian_set_GetOwnerRankByBlock proc~lagrangian_set_getownerrankbyblock->proc~block_obj_locate proc~respart_set_regroup ResPart_set%ResPart_set_Regroup proc~respart_set_regroup->proc~lagrangian_set_getownerrankbyblock proc~grans_obj_advancesolution grans_obj_AdvanceSolution proc~grans_obj_advancesolution->proc~respart_set_regroup proc~grans_obj_advancesolution_storeold grans_obj_AdvanceSolution_StoreOld proc~grans_obj_advancesolution->proc~grans_obj_advancesolution_storeold proc~grans_obj_advancesolution_storeold->proc~respart_set_regroup proc~respart_set_gethydroforces ResPart_set%ResPart_set_GetHydroForces proc~respart_set_gethydroforces->proc~respart_set_regroup interface~grans_obj_advancesolution grans_obj%grans_obj_AdvanceSolution interface~grans_obj_advancesolution->proc~grans_obj_advancesolution proc~cdifs_obj_advancesolutionrp cdifs_obj_AdvanceSolutionRP proc~cdifs_obj_advancesolutionrp->proc~respart_set_gethydroforces proc~cdifs_obj_advancesolution cdifs_obj_AdvanceSolution proc~cdifs_obj_advancesolution->proc~cdifs_obj_advancesolutionrp interface~cdifs_obj_advancesolution cdifs_obj%cdifs_obj_AdvanceSolution interface~cdifs_obj_advancesolution->proc~cdifs_obj_advancesolution