From fbe6b52af1223784582333e5abdc9119f1e38bb0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 1 Aug 2012 16:42:24 +0100 Subject: [PATCH] BUG: IOdictionary: transfer dictionaries as ascii --- src/OpenFOAM/db/IOobjects/IOdictionary/IOdictionaryIO.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/OpenFOAM/db/IOobjects/IOdictionary/IOdictionaryIO.C b/src/OpenFOAM/db/IOobjects/IOdictionary/IOdictionaryIO.C index 881250f3eb..e620b3b942 100644 --- a/src/OpenFOAM/db/IOobjects/IOdictionary/IOdictionaryIO.C +++ b/src/OpenFOAM/db/IOobjects/IOdictionary/IOdictionaryIO.C @@ -95,14 +95,16 @@ void Foam::IOdictionary::readFile(const bool masterOnly) } // Note: use ASCII for now - binary IO of dictionaries is - // not currently supported + // not currently supported or rather the primitiveEntries of + // the dictionary think they are in binary form whereas they are + // not. Could reset all the ITstreams to ascii? IPstream fromAbove ( Pstream::scheduled, myComm.above(), 0, Pstream::msgType(), - IOstream::BINARY + IOstream::ASCII ); IOdictionary::readData(fromAbove); } @@ -121,7 +123,7 @@ void Foam::IOdictionary::readFile(const bool masterOnly) myComm.below()[belowI], 0, Pstream::msgType(), - IOstream::BINARY + IOstream::ASCII ); IOdictionary::writeData(toBelow); }