BUG: extendedFeatureEdgeMesh: Fix bug reading in sideVolumeType enum

This commit is contained in:
laurence
2013-07-22 12:18:47 +01:00
parent ad2ef8e6fb
commit 53460c36dd

View File

@ -1386,17 +1386,11 @@ Foam::Istream& Foam::operator>>
Foam::extendedFeatureEdgeMesh::sideVolumeType& vt
)
{
// Read beginning of sideVolumeType
is.readBegin("sideVolumeType");
int type;
label type;
is >> type;
vt = static_cast<Foam::extendedFeatureEdgeMesh::sideVolumeType>(type);
// Read end of volumeType
is.readEnd("sideVolumeType");
// Check state of Istream
is.check("operator>>(Istream&, sideVolumeType&)");
@ -1410,7 +1404,7 @@ Foam::Ostream& Foam::operator<<
const Foam::extendedFeatureEdgeMesh::sideVolumeType& vt
)
{
os << static_cast<int>(vt);
os << static_cast<label>(vt);
return os;
}