mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
casting fun...
This commit is contained in:
@ -203,7 +203,7 @@ Foam::Ostream& Foam::operator<<
|
|||||||
os << static_cast<const Particle<ParcelType>& >(p);
|
os << static_cast<const Particle<ParcelType>& >(p);
|
||||||
os.write
|
os.write
|
||||||
(
|
(
|
||||||
reinterpret_cast<const char*>(p.typeId()),
|
reinterpret_cast<const char*>(&p.typeId_),
|
||||||
sizeof(p.typeId())
|
sizeof(p.typeId())
|
||||||
+ sizeof(p.d())
|
+ sizeof(p.d())
|
||||||
+ sizeof(p.U())
|
+ sizeof(p.U())
|
||||||
|
|||||||
@ -297,10 +297,7 @@ Foam::Ostream& Foam::operator<<
|
|||||||
os << static_cast<const ThermoParcel<ParcelType>& >(p);
|
os << static_cast<const ThermoParcel<ParcelType>& >(p);
|
||||||
os.write
|
os.write
|
||||||
(
|
(
|
||||||
reinterpret_cast<const char*>
|
reinterpret_cast<const char*>(&p.mass0_),
|
||||||
(
|
|
||||||
&const_cast<ReactingParcel<ParcelType>&>(p).mass0()
|
|
||||||
),
|
|
||||||
sizeof(p.mass0())
|
sizeof(p.mass0())
|
||||||
);
|
);
|
||||||
os << p.YMixture() << YGasLoc << YLiquidLoc << YSolidLoc;
|
os << p.YMixture() << YGasLoc << YLiquidLoc << YSolidLoc;
|
||||||
|
|||||||
@ -149,10 +149,7 @@ Foam::Ostream& Foam::operator<<
|
|||||||
os << static_cast<const KinematicParcel<ParcelType>& >(p);
|
os << static_cast<const KinematicParcel<ParcelType>& >(p);
|
||||||
os.write
|
os.write
|
||||||
(
|
(
|
||||||
reinterpret_cast<const char*>
|
reinterpret_cast<const char*>(&p.T_),
|
||||||
(
|
|
||||||
&const_cast<ThermoParcel<ParcelType>&>(p).T()
|
|
||||||
),
|
|
||||||
sizeof(p.T()) + sizeof(p.cp())
|
sizeof(p.T()) + sizeof(p.cp())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user