Skip to content
Snippets Groups Projects
Commit 3bbc464d authored by mattijs's avatar mattijs
Browse files

BUG: dictionary + runtime modifiable : dictionary transfer through binary stream does not work.

parent b2b9eacb
Branches
Tags
No related merge requests found
......@@ -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);
}
}
......
......@@ -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);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment