6[[nodiscard]]
inline auto sim_count(
size_t rank,
size_t size,
7 size_t totSimCount) ->
size_t
9 size_t localCount = totSimCount / size;
10 if ( rank < totSimCount % size ) {
17[[nodiscard]]
inline auto start_sim_id(
size_t rank,
size_t size,
18 size_t totSimCount) ->
size_t
20 size_t idx = rank * sim_count(rank, size, totSimCount);
21 if ( rank >= totSimCount % size ) {
22 idx += totSimCount % size;