MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / reduce

Function reduce

src/Pstream/mpi/UPstream.C:192–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191
192void Foam::reduce
193(
194 scalar& Value,
195 const sumOp<scalar>& bop,
196 const int tag,
197 const label communicator
198)
199{
200 if (UPstream::warnComm != -1 && communicator != UPstream::warnComm)
201 {
202 Pout<< "** reducing:" << Value << " with comm:" << communicator
203 << " warnComm:" << UPstream::warnComm
204 << endl;
205 error::printStack(Pout);
206 }
207 allReduce(Value, 1, MPI_SCALAR, MPI_SUM, bop, tag, communicator);
208}
209
210
211void Foam::reduce

Callers 15

sumReduceFunction · 0.70
mainFunction · 0.50
writeStencilStatsFunction · 0.50
writeStencilStatsFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
autoDensity.CFile · 0.50
pointFile.CFile · 0.50
smoothAlignmentsFunction · 0.50

Calls 3

printStackFunction · 0.50
sizeMethod · 0.45
appendMethod · 0.45

Tested by 4

mainFunction · 0.40
writeStencilStatsFunction · 0.40
writeStencilStatsFunction · 0.40
mainFunction · 0.40