mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: make volumeType input operator symmetric with output (issue #994)
- uses int, without enclosing brackets.
This commit is contained in:
@ -66,18 +66,11 @@ const Foam::word& Foam::volumeType::str() const
|
|||||||
|
|
||||||
Foam::Istream& Foam::operator>>(Istream& is, volumeType& vt)
|
Foam::Istream& Foam::operator>>(Istream& is, volumeType& vt)
|
||||||
{
|
{
|
||||||
// Read beginning of volumeType
|
|
||||||
is.readBegin("volumeType");
|
|
||||||
|
|
||||||
int val;
|
int val;
|
||||||
is >> val;
|
is >> val;
|
||||||
|
|
||||||
vt.t_ = static_cast<volumeType::type>(val);
|
vt.t_ = static_cast<volumeType::type>(val);
|
||||||
|
|
||||||
// Read end of volumeType
|
|
||||||
is.readEnd("volumeType");
|
|
||||||
|
|
||||||
is.check(FUNCTION_NAME);
|
|
||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user