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
d21869b5
Commit
d21869b5
authored
Feb 13, 2009
by
Andrew Heather
Browse files
cosmetics
parent
485d8214
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/dictionary/dictionaryIO.C
View file @
d21869b5
...
...
@@ -79,12 +79,7 @@ bool Foam::dictionary::substituteKeyword(const word& keyword)
{
const
dictionary
&
addDict
=
ePtr
->
dict
();
for
(
IDLList
<
entry
>::
const_iterator
iter
=
addDict
.
begin
();
iter
!=
addDict
.
end
();
++
iter
)
forAllConstIter
(
IDLList
<
entry
>
,
addDict
,
iter
)
{
add
(
iter
());
}
...
...
@@ -152,15 +147,22 @@ void Foam::dictionary::write(Ostream& os, bool subDict) const
os
<<
nl
<<
indent
<<
token
::
BEGIN_BLOCK
<<
incrIndent
<<
nl
;
}
for
(
IDLList
<
entry
>::
const_iterator
iter
=
begin
();
iter
!=
end
();
++
iter
)
forAllConstIter
(
IDLList
<
entry
>
,
*
this
,
iter
)
{
// Write entry & follow with carriage return.
os
<<
*
iter
;
const
entry
&
e
=
*
iter
;
// Write entry
os
<<
e
;
// Add new line if applicable
if
(
(
e
.
isDict
()
||
(
!
e
.
isDict
()
&&
parent
()
==
dictionary
::
null
))
&&
e
!=
*
last
()
)
{
os
<<
nl
;
}
// Check stream before going to next entry.
if
(
!
os
.
good
())
...
...
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