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
3bbc464d
Commit
3bbc464d
authored
Nov 22, 2010
by
mattijs
Browse files
BUG: dictionary + runtime modifiable : dictionary transfer through binary stream does not work.
parent
b2b9eacb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/IOobjects/IOdictionary/IOdictionary.C
View file @
3bbc464d
...
...
@@ -67,8 +67,16 @@ void Foam::IOdictionary::readFile(const bool masterOnly)
slave
++
)
{
OPstream
toSlave
(
Pstream
::
scheduled
,
slave
);
// Note: use ASCII for now - binary IO of dictionaries is
// not currently supported
OPstream
toSlave
(
Pstream
::
scheduled
,
slave
,
0
,
UPstream
::
msgType
(),
IOstream
::
ASCII
);
IOdictionary
::
writeData
(
toSlave
);
}
}
...
...
@@ -79,7 +87,13 @@ void Foam::IOdictionary::readFile(const bool masterOnly)
Pout
<<
"IOdictionary : Reading "
<<
objectPath
()
<<
" from master processor "
<<
Pstream
::
masterNo
()
<<
endl
;
}
IPstream
fromMaster
(
Pstream
::
scheduled
,
Pstream
::
masterNo
());
IPstream
fromMaster
(
Pstream
::
scheduled
,
Pstream
::
masterNo
(),
0
,
IOstream
::
ASCII
);
IOdictionary
::
readData
(
fromMaster
);
}
}
...
...
src/OpenFOAM/db/regIOobject/regIOobjectRead.C
View file @
3bbc464d
...
...
@@ -196,8 +196,16 @@ bool Foam::regIOobject::read()
slave
++
)
{
OPstream
toSlave
(
Pstream
::
scheduled
,
slave
);
// Note: use ASCII for now - binary IO of dictionaries is
// not currently supported
OPstream
toSlave
(
Pstream
::
scheduled
,
slave
,
0
,
UPstream
::
msgType
(),
IOstream
::
ASCII
);
writeData
(
toSlave
);
}
}
...
...
@@ -210,7 +218,13 @@ bool Foam::regIOobject::read()
<<
" from master processor "
<<
Pstream
::
masterNo
()
<<
endl
;
}
IPstream
fromMaster
(
Pstream
::
scheduled
,
Pstream
::
masterNo
());
IPstream
fromMaster
(
Pstream
::
scheduled
,
Pstream
::
masterNo
(),
0
,
IOstream
::
ASCII
);
ok
=
readData
(
fromMaster
);
}
}
...
...
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