Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c713c814
Commit
c713c814
authored
Oct 10, 2008
by
mattijs
Browse files
make output compatible with dictionary entries
parent
d6bad4c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C
View file @
c713c814
...
...
@@ -77,7 +77,7 @@ Foam::Istream& Foam::operator>>(Foam::Istream& is, FixedList<T, Size>& L)
}
else
{
// Putback the open
n
ing bracket
// Putback the opening bracket
is
.
putBack
(
firstToken
);
}
...
...
@@ -190,8 +190,9 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const FixedList<T, Size>& L)
if
(
uniform
)
{
// Write size of list and start contents delimiter
os
<<
token
::
BEGIN_BLOCK
;
// Write size of list (so it is valid dictionary entry) and
// start contents delimiter
os
<<
L
.
size
()
<<
token
::
BEGIN_BLOCK
;
// Write list contents
os
<<
L
[
0
];
...
...
@@ -201,7 +202,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const FixedList<T, Size>& L)
}
else
if
(
Size
<
11
&&
contiguous
<
T
>
())
{
// Write
size of list and
start contents delimiter
// Write start
of
contents delimiter
os
<<
token
::
BEGIN_LIST
;
// Write list contents
...
...
@@ -216,7 +217,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const FixedList<T, Size>& L)
}
else
{
// Write
size of list and
start contents delimiter
// Write start
of
contents delimiter
os
<<
nl
<<
token
::
BEGIN_LIST
;
// Write list contents
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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