rank_first_global Function

public pure function rank_first_global(n_global, n_ranks, rank_id) result(i_first)

1-based global index of rank_id's first owned cell under the same partition as rank_local_count. Equals the sum of all lower ranks' counts, plus 1. Pure — single source of truth (see rank_local_count).

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n_global
integer, intent(in) :: n_ranks
integer, intent(in) :: rank_id

Return Value integer