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

Function QueueReduction

Src/Base/AMReX_Lazy.cpp:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5 FuncQue reduction_queue;
6
7 void QueueReduction (Func f) // NOLINT
8 {
9#ifdef BL_USE_MPI
10 reduction_queue.push_back(f);
11 const int max_queue_size = 64;
12 if (reduction_queue.size() >= max_queue_size) {
13 EvalReduction();
14 }
15#else
16 f();
17#endif
18 }
19
20 void EvalReduction ()
21 {

Callers 11

printTotalMethod · 0.85
printTotalMethod · 0.85
printTotalMethod · 0.85
AdvectWithUmacMethod · 0.85
AdvectWithUccMethod · 0.85
TimestampMethod · 0.85
ByteSpreadMethod · 0.85
PrintCapacityMethod · 0.85
initializeMethod · 0.85
coarseTimeStepMethod · 0.85
grid_placesMethod · 0.85

Calls 4

EvalReductionFunction · 0.85
fFunction · 0.50
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected