32 template<
class ParticleType>
34 "(Px Py Pz) cellI origProc origId";
38 template<
class ParticleType>
49 origProc_(Pstream::myProcNo()),
55 if (is.
format() == IOstream::ASCII)
57 is >> position_ >> celli_;
60 is >> origProc_ >> origId_;
70 reinterpret_cast<char*>(&position_),
74 +
sizeof(stepFraction_)
83 reinterpret_cast<char*>(&position_),
87 +
sizeof(stepFraction_)
94 celli_ = cloud_.pMesh().findCell(position_);
98 is.
check(
"Particle<ParticleType>::Particle(Istream&)");
102 template<
class ParticleType>
115 if (procIO.headerOk())
125 ParticleType&
p = iter();
127 p.origProc_ = origProcId[i];
128 p.origId_ = origId[i];
135 template<
class ParticleType>
161 origProc[i] = iter().origProc_;
162 origId[i] = iter().origId_;
171 template<
class ParticleType>
174 if (os.
format() == IOstream::ASCII)
180 << token::SPACE << celli_
181 << token::SPACE << origProc_
182 << token::SPACE << origId_;
187 << token::SPACE << celli_;
197 reinterpret_cast<const char*>(&position_),
201 +
sizeof(stepFraction_)
210 reinterpret_cast<const char*>(&position_),
214 +
sizeof(stepFraction_)
220 os.
check(
"Particle<ParticleType>::write(Ostream& os, bool) const");
224 template<
class ParticleType>