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

Function ReduceBoolOr

Src/Base/AMReX_ParallelDescriptor.cpp:624–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624void
625ReduceBoolOr (bool& r)
626{
627 int src = r; // src is either 0 or 1.
628
629 detail::DoAllReduce<int>(&src,MPI_SUM,1);
630
631 r = (src == 0) ? false : true;
632}
633
634void
635ReduceBoolOr (bool& r, int cpu)

Callers 3

btCheckRefineMethod · 0.85
btCheckDerefineMethod · 0.85
coarsenFromFineMethod · 0.85

Calls 1

MyProcFunction · 0.70

Tested by

no test coverage detected