Commit 2ab359f0 authored by Andrew Heather's avatar Andrew Heather
Browse files

codmetics

parent 2a1236c0
......@@ -116,16 +116,16 @@ void Foam::KinematicParcel<ParcelType>::readFields
IOField<label> typeId(c.fieldIOobject("typeId", IOobject::MUST_READ));
c.checkFieldIOobject(c, typeId);
IOField<scalar>
nParticle(c.fieldIOobject("nParticle", IOobject::MUST_READ));
c.checkFieldIOobject(c, nParticle);
IOField<scalar> d(c.fieldIOobject("d", IOobject::MUST_READ));
c.checkFieldIOobject(c, d);
IOField<vector> U(c.fieldIOobject("U", IOobject::MUST_READ));
c.checkFieldIOobject(c, U);
IOField<scalar>
nParticle(c.fieldIOobject("nParticle", IOobject::MUST_READ));
c.checkFieldIOobject(c, nParticle);
IOField<scalar> rho(c.fieldIOobject("rho", IOobject::MUST_READ));
c.checkFieldIOobject(c, rho);
......
......@@ -224,11 +224,10 @@ Foam::Ostream& Foam::operator<<
os << static_cast<const ThermoParcel<ParcelType>&>(p);
os.write
(
reinterpret_cast<const char*>(&p.mass0_),
sizeof(p.mass0())
);
os << p.Y();
os << p.Y();
}
// Check state of Ostream
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment