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.write
|
||||
(
|
||||
reinterpret_cast<const char*>(p.typeId()),
|
||||
reinterpret_cast<const char*>(&p.typeId_),
|
||||
sizeof(p.typeId())
|
||||
+ sizeof(p.d())
|
||||
+ sizeof(p.U())
|
||||
|
||||
@ -297,10 +297,7 @@ Foam::Ostream& Foam::operator<<
|
||||
os << static_cast<const ThermoParcel<ParcelType>& >(p);
|
||||
os.write
|
||||
(
|
||||
reinterpret_cast<const char*>
|
||||
(
|
||||
&const_cast<ReactingParcel<ParcelType>&>(p).mass0()
|
||||
),
|
||||
reinterpret_cast<const char*>(&p.mass0_),
|
||||
sizeof(p.mass0())
|
||||
);
|
||||
os << p.YMixture() << YGasLoc << YLiquidLoc << YSolidLoc;
|
||||
|
||||
@ -149,10 +149,7 @@ Foam::Ostream& Foam::operator<<
|
||||
os << static_cast<const KinematicParcel<ParcelType>& >(p);
|
||||
os.write
|
||||
(
|
||||
reinterpret_cast<const char*>
|
||||
(
|
||||
&const_cast<ThermoParcel<ParcelType>&>(p).T()
|
||||
),
|
||||
reinterpret_cast<const char*>(&p.T_),
|
||||
sizeof(p.T()) + sizeof(p.cp())
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user