34 int main(
int argc,
char *argv[])
40 IOdictionary mdInitialiseDict
47 IOobject::MUST_READ_IF_MODIFIED,
53 IOdictionary idListDict
58 mesh.time().constant(),
65 potential pot(
mesh, mdInitialiseDict, idListDict);
67 moleculeCloud molecules(
mesh, pot, mdInitialiseDict);
69 label totalMolecules = molecules.size();
71 if (Pstream::parRun())
73 reduce(totalMolecules, sumOp<label>());
76 Info<<
nl <<
"Total number of molecules added: " << totalMolecules
79 IOstream::defaultPrecision(15);
84 <<
"Failed writing moleculeCloud." 88 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)