Foam::particle::particle ( const polyMesh& mesh, const vector& position, const label celli, const label tetFacei, const label tetPtI ) : mesh_(mesh), position_(position), celli_(celli), facei_(-1), stepFraction_(0.0), tetFacei_(tetFacei), tetPtI_(tetPtI), origProc_(Pstream::myProcNo()), origId_(getNewParticleID()) {}
Foam::particle::particle ( const polyMesh& mesh, const vector& position, const label celli, bool doCellFacePt ) : mesh_(mesh), position_(position), celli_(celli), facei_(-1), stepFraction_(0.0), tetFacei_(-1), tetPti_(-1), origProc_(Pstream::myProcNo()), origId_(getNewParticleID()) { if (doCellFacePt) { initCellFacePt(); } }