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

Method push

Src/Base/AMReX.cpp:1010–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008}
1009
1010void
1011AMReX::push (AMReX* pamrex)
1012{
1013 auto r = std::find_if(m_instance.begin(), m_instance.end(),
1014 [=] (const std::unique_ptr<AMReX>& x) -> bool
1015 { return x.get() == pamrex; });
1016 if (r == m_instance.end()) {
1017 m_instance.emplace_back(pamrex);
1018 } else if (r+1 != m_instance.end()) {
1019 std::rotate(r, r+1, m_instance.end());
1020 }
1021}
1022
1023void
1024AMReX::push (std::unique_ptr<AMReX> pamrex)

Callers 7

ExecOnFinalizeMethod · 0.45
ExecOnInitializeMethod · 0.45
knapsackFunction · 0.45
KnapSackProcessorMapMethod · 0.45
startMethod · 0.45
AMREX_FORCE_INLINEFunction · 0.45
AMREX_FORCE_INLINEFunction · 0.45

Calls 5

rotateFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected