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

Function ReduceBoolAnd

Src/Base/AMReX_ParallelDescriptor.cpp:602–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void
603ReduceBoolAnd (bool& r)
604{
605 int src = r; // src is either 0 or 1.
606
607 detail::DoAllReduce<int>(&src,MPI_SUM,1);
608
609 r = (src == ParallelDescriptor::NProcs()) ? true : false;
610}
611
612void
613ReduceBoolAnd (bool& r, int cpu)

Callers 1

vismf_make_dmFunction · 0.85

Calls 2

NProcsFunction · 0.70
MyProcFunction · 0.70

Tested by

no test coverage detected