diff --git a/src/OpenFOAM/db/Time/TimeIO.C b/src/OpenFOAM/db/Time/TimeIO.C index 436661040fa83bea0bc7db1b6ca7c0a723be6b97..39e88a66d18e9f99382ff5ee5ecde3ea9145368c 100644 --- a/src/OpenFOAM/db/Time/TimeIO.C +++ b/src/OpenFOAM/db/Time/TimeIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -347,6 +347,20 @@ void Foam::Time::readDict() ( controlDict_.lookup("writeCompression") ); + + if + ( + writeFormat_ == IOstream::BINARY + && writeCompression_ == IOstream::COMPRESSED + ) + { + IOWarningInFunction(controlDict_) + << "Selecting compressed binary is inefficient and ineffective" + ", resetting to uncompressed binary" + << endl; + + writeCompression_ = IOstream::UNCOMPRESSED; + } } controlDict_.readIfPresent("graphFormat", graphFormat_);