mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: extendedFeatureEdgeMesh: Fix bug reading in sideVolumeType enum
This commit is contained in:
@ -1386,17 +1386,11 @@ Foam::Istream& Foam::operator>>
|
|||||||
Foam::extendedFeatureEdgeMesh::sideVolumeType& vt
|
Foam::extendedFeatureEdgeMesh::sideVolumeType& vt
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Read beginning of sideVolumeType
|
label type;
|
||||||
is.readBegin("sideVolumeType");
|
|
||||||
|
|
||||||
int type;
|
|
||||||
is >> type;
|
is >> type;
|
||||||
|
|
||||||
vt = static_cast<Foam::extendedFeatureEdgeMesh::sideVolumeType>(type);
|
vt = static_cast<Foam::extendedFeatureEdgeMesh::sideVolumeType>(type);
|
||||||
|
|
||||||
// Read end of volumeType
|
|
||||||
is.readEnd("sideVolumeType");
|
|
||||||
|
|
||||||
// Check state of Istream
|
// Check state of Istream
|
||||||
is.check("operator>>(Istream&, sideVolumeType&)");
|
is.check("operator>>(Istream&, sideVolumeType&)");
|
||||||
|
|
||||||
@ -1410,7 +1404,7 @@ Foam::Ostream& Foam::operator<<
|
|||||||
const Foam::extendedFeatureEdgeMesh::sideVolumeType& vt
|
const Foam::extendedFeatureEdgeMesh::sideVolumeType& vt
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
os << static_cast<int>(vt);
|
os << static_cast<label>(vt);
|
||||||
|
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user