38 int main(
int argc,
char *argv[])
46 IOdictionary dsmcInitialiseDict
53 IOobject::MUST_READ_IF_MODIFIED,
62 label totalMolecules = dsmc.size();
64 if (Pstream::parRun())
66 reduce(totalMolecules, sumOp<label>());
69 Info<<
nl <<
"Total number of molecules added: " << totalMolecules
72 IOstream::defaultPrecision(15);
77 <<
"Failed writing dsmcCloud." 81 Info<<
nl <<
"ClockTime = " <<
runTime.elapsedClockTime() <<
" s"
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
DSMCCloud< dsmcParcel > dsmcCloud