43 int main(
int argc,
char *argv[])
47 "Initialise a case for dsmcFoam from the system/dsmcInitialise" 57 IOdictionary dsmcInitialiseDict
64 IOobject::MUST_READ_IF_MODIFIED,
73 label totalMolecules = dsmc.size();
75 if (Pstream::parRun())
77 reduce(totalMolecules, sumOp<label>());
80 Info<<
nl <<
"Total number of molecules added: " << totalMolecules
83 IOstream::defaultPrecision(15);
88 <<
"Failed writing dsmcCloud."
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
DSMCCloud< dsmcParcel > dsmcCloud
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
Reduce inplace (cf. MPI Allreduce) using specified communication schedule.
messageStream Info
Information stream (stdout output on master, null elsewhere)