Commit f57c22bb authored by Mark Olesen's avatar Mark Olesen
Browse files

set floatTransfer off in code

parent c26396c0
...@@ -230,7 +230,7 @@ Foam::List<Foam::Pstream::commsStruct> Foam::Pstream::treeCommunication_(0); ...@@ -230,7 +230,7 @@ Foam::List<Foam::Pstream::commsStruct> Foam::Pstream::treeCommunication_(0);
// in accuracy // in accuracy
bool Foam::Pstream::floatTransfer bool Foam::Pstream::floatTransfer
( (
debug::optimisationSwitch("floatTransfer", 1) debug::optimisationSwitch("floatTransfer", 0)
); );
// Number of processors at which the reduce algorithm changes from linear to // Number of processors at which the reduce algorithm changes from linear to
......
...@@ -129,7 +129,7 @@ void Foam::processorLduInterface::compressedSend ...@@ -129,7 +129,7 @@ void Foam::processorLduInterface::compressedSend
const UList<Type>& f const UList<Type>& f
) const ) const
{ {
if (sizeof(scalar) != sizeof(float) && f.size() && Pstream::floatTransfer) if (sizeof(scalar) != sizeof(float) && Pstream::floatTransfer && f.size())
{ {
static const label nCmpts = sizeof(Type)/sizeof(scalar); static const label nCmpts = sizeof(Type)/sizeof(scalar);
label nm1 = (f.size() - 1)*nCmpts; label nm1 = (f.size() - 1)*nCmpts;
...@@ -199,7 +199,7 @@ void Foam::processorLduInterface::compressedReceive ...@@ -199,7 +199,7 @@ void Foam::processorLduInterface::compressedReceive
UList<Type>& f UList<Type>& f
) const ) const
{ {
if (sizeof(scalar) != sizeof(float) && f.size() && Pstream::floatTransfer) if (sizeof(scalar) != sizeof(float) && Pstream::floatTransfer && f.size())
{ {
static const label nCmpts = sizeof(Type)/sizeof(scalar); static const label nCmpts = sizeof(Type)/sizeof(scalar);
label nm1 = (f.size() - 1)*nCmpts; label nm1 = (f.size() - 1)*nCmpts;
......
Markdown is supported
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