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

Method push_back

Src/Base/AMReX_DistributionMapping.cpp:567–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565 m_lb->erase(it);
566 }
567 void push_back (const WeightedBox& bx)
568 {
569 m_weight += bx.weight();
570 m_lb->push_back(bx);
571 }
572 [[nodiscard]] int size () const { return static_cast<int>(m_lb->size()); }
573 [[nodiscard]] Vector<WeightedBox>::const_iterator begin () const { return m_lb->begin(); }
574 [[nodiscard]] Vector<WeightedBox>::iterator begin () { return m_lb->begin(); } // NOLINT(readability-make-member-function-const)

Callers 9

LeastUsedTeamsMethod · 0.45
knapsackFunction · 0.45
KnapSackProcessorMapMethod · 0.45
DistributeFunction · 0.45
SFCProcessorMapDoItMethod · 0.45
SFCProcessorMapMethod · 0.45
RRSFCDoItMethod · 0.45
makeSFCMethod · 0.45

Calls 1

weightMethod · 0.45

Tested by

no test coverage detected