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
935be5df
Commit
935be5df
authored
Dec 14, 2010
by
mattijs
Browse files
ENH: IOdictionary : transfer note() in masterOnly mode.
parent
7ae8dc48
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/IOobjects/IOdictionary/IOdictionary.C
View file @
935be5df
...
...
@@ -68,9 +68,8 @@ void Foam::IOdictionary::readFile(const bool masterOnly)
// Master reads headerclassname from file. Make sure this gets
// transfered as well as contents.
word
masterClassName
=
headerClassName
();
Pstream
::
scatter
(
comms
,
masterClassName
);
Pstream
::
scatter
(
comms
,
const_cast
<
word
&>
(
headerClassName
()));
Pstream
::
scatter
(
comms
,
note
());
// Get my communication order
const
Pstream
::
commsStruct
&
myComm
=
comms
[
Pstream
::
myProcNo
()];
...
...
@@ -94,7 +93,6 @@ void Foam::IOdictionary::readFile(const bool masterOnly)
IOstream
::
ASCII
);
IOdictionary
::
readData
(
fromAbove
);
const_cast
<
word
&>
(
headerClassName
())
=
masterClassName
;
}
// Send to my downstairs neighbours
...
...
src/OpenFOAM/db/regIOobject/regIOobjectRead.C
View file @
935be5df
...
...
@@ -203,8 +203,8 @@ bool Foam::regIOobject::read()
// Master reads headerclassname from file. Make sure this gets
// transfered as well as contents.
word
masterClassName
=
headerClassName
();
Pstream
::
scatter
(
comms
,
masterClassName
);
Pstream
::
scatter
(
comms
,
const_cast
<
word
&>
(
headerClassName
()
))
;
Pstream
::
scatter
(
comms
,
note
()
);
// Get my communication order
...
...
@@ -231,7 +231,6 @@ bool Foam::regIOobject::read()
IOstream
::
ASCII
);
ok
=
readData
(
fromAbove
);
const_cast
<
word
&>
(
headerClassName
())
=
masterClassName
;
}
// Send to my downstairs neighbours
...
...
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