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

Method Sort

Src/Base/AMReX_DistributionMapping.cpp:178–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void
179DistributionMapping::Sort (std::vector<LIpair>& vec,
180 bool reverse)
181{
182 if (std::ssize(vec) > 1)
183 {
184 if (reverse) {
185 std::ranges::stable_sort(vec, LIpairGT());
186 }
187 else {
188 std::ranges::stable_sort(vec, LIpairLT());
189 }
190 }
191}
192
193void
194DistributionMapping::LeastUsedCPUs (int nprocs,

Callers 1

sortMethod · 0.80

Calls 2

LIpairGTClass · 0.85
LIpairLTClass · 0.85

Tested by

no test coverage detected