From 5ab3390aef43ef3be5669097a4f14bf538fa8b43 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 22 Sep 2016 00:54:58 +0100 Subject: [PATCH] Bugfix: restored floatTransfer flag --- src/foam/db/IOstreams/Pstreams/Pstream.C | 11 +++++++++++ src/foam/db/IOstreams/Pstreams/Pstream.H | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/src/foam/db/IOstreams/Pstreams/Pstream.C b/src/foam/db/IOstreams/Pstreams/Pstream.C index 09e7fb5e7..d41e2ac77 100644 --- a/src/foam/db/IOstreams/Pstreams/Pstream.C +++ b/src/foam/db/IOstreams/Pstreams/Pstream.C @@ -625,6 +625,17 @@ Foam::List Foam::Pstream::linearCommunication_(0); Foam::List Foam::Pstream::treeCommunication_(0); +// Should compact transfer be used in which floats replace doubles +// reducing the bandwidth requirement at the expense of some loss +// in accuracy +const Foam::debug::optimisationSwitch +Foam::Pstream::floatTransfer +( + "floatTransfer", + 0 +); + + // Number of processors at which the reduce algorithm changes from linear to // tree const Foam::debug::optimisationSwitch diff --git a/src/foam/db/IOstreams/Pstreams/Pstream.H b/src/foam/db/IOstreams/Pstreams/Pstream.H index 41275dfe3..502c071ca 100644 --- a/src/foam/db/IOstreams/Pstreams/Pstream.H +++ b/src/foam/db/IOstreams/Pstreams/Pstream.H @@ -223,6 +223,11 @@ public: // Static data + //- Should compact transfer be used in which floats replace doubles + // reducing the bandwidth requirement at the expense of some loss + // in accuracy + static const debug::optimisationSwitch floatTransfer; + //- Number of processors at which the sum algorithm changes from linear // to tree static const debug::optimisationSwitch nProcsSimpleSum; -- 2.11.4.GIT