MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / makeRoundRobin

Method makeRoundRobin

Src/Base/AMReX_DistributionMapping.cpp:1754–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1752}
1753
1754DistributionMapping
1755DistributionMapping::makeRoundRobin (const MultiFab& weight)
1756{
1757 BL_PROFILE("makeRoundRobin");
1758 Vector<Long> cost = gather_weights(weight);
1759 int nprocs = ParallelContext::NProcsSub();
1760 DistributionMapping r;
1761 r.RoundRobinProcessorMap(cost, nprocs);
1762 return r;
1763}
1764
1765DistributionMapping
1766DistributionMapping::makeSFC (const MultiFab& weight, bool sort)

Callers

nothing calls this directly

Calls 3

gather_weightsFunction · 0.85
NProcsSubFunction · 0.85

Tested by

no test coverage detected