Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
6f16c677
Commit
6f16c677
authored
Sep 10, 2018
by
Mark Olesen
Browse files
STYLE: make volumeType input operator symmetric with output (issue
#994
)
- uses int, without enclosing brackets.
parent
4ec73897
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/algorithms/indexedOctree/volumeType.C
View file @
6f16c677
...
...
@@ -66,18 +66,11 @@ const Foam::word& Foam::volumeType::str() const
Foam
::
Istream
&
Foam
::
operator
>>
(
Istream
&
is
,
volumeType
&
vt
)
{
// Read beginning of volumeType
is
.
readBegin
(
"volumeType"
);
int
val
;
is
>>
val
;
vt
.
t_
=
static_cast
<
volumeType
::
type
>
(
val
);
// Read end of volumeType
is
.
readEnd
(
"volumeType"
);
is
.
check
(
FUNCTION_NAME
);
return
is
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment