Bugfix: use standard debug format

This commit is contained in:
Hrvoje Jasak 2016-04-27 19:04:46 +01:00
parent 8ac6d0c6c8
commit 1e5d86a935

View file

@ -74,7 +74,7 @@ void Pstream::combineGather
sizeof(T) sizeof(T)
); );
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< belowID << " data:" << value << endl; << belowID << " data:" << value << endl;
@ -87,7 +87,7 @@ void Pstream::combineGather
IPstream fromBelow(Pstream::scheduled, belowID); IPstream fromBelow(Pstream::scheduled, belowID);
T value(fromBelow); T value(fromBelow);
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< belowID << " data:" << value << endl; << belowID << " data:" << value << endl;
@ -100,7 +100,7 @@ void Pstream::combineGather
// Send up Value // Send up Value
if (myComm.above() != -1) if (myComm.above() != -1)
{ {
if (debug & 2) if (debug > 1)
{ {
Pout<< " sending to " << myComm.above() Pout<< " sending to " << myComm.above()
<< " data:" << Value << endl; << " data:" << Value << endl;
@ -167,7 +167,7 @@ void Pstream::combineScatter(const List<Pstream::commsStruct>& comms, T& Value)
Value = T(fromAbove); Value = T(fromAbove);
} }
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< myComm.above() << " data:" << Value << endl; << myComm.above() << " data:" << Value << endl;
@ -179,7 +179,7 @@ void Pstream::combineScatter(const List<Pstream::commsStruct>& comms, T& Value)
{ {
label belowID = myComm.below()[belowI]; label belowID = myComm.below()[belowI];
if (debug & 2) if (debug > 1)
{ {
Pout<< " sending to " << belowID << " data:" << Value << endl; Pout<< " sending to " << belowID << " data:" << Value << endl;
} }
@ -252,7 +252,7 @@ void Pstream::listCombineGather
receivedValues.byteSize() receivedValues.byteSize()
); );
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< belowID << " data:" << receivedValues << endl; << belowID << " data:" << receivedValues << endl;
@ -268,7 +268,7 @@ void Pstream::listCombineGather
IPstream fromBelow(Pstream::scheduled, belowID); IPstream fromBelow(Pstream::scheduled, belowID);
List<T> receivedValues(fromBelow); List<T> receivedValues(fromBelow);
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< belowID << " data:" << receivedValues << endl; << belowID << " data:" << receivedValues << endl;
@ -284,7 +284,7 @@ void Pstream::listCombineGather
// Send up Value // Send up Value
if (myComm.above() != -1) if (myComm.above() != -1)
{ {
if (debug & 2) if (debug > 1)
{ {
Pout<< " sending to " << myComm.above() Pout<< " sending to " << myComm.above()
<< " data:" << Values << endl; << " data:" << Values << endl;
@ -355,7 +355,7 @@ void Pstream::listCombineScatter
fromAbove >> Values; fromAbove >> Values;
} }
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< myComm.above() << " data:" << Values << endl; << myComm.above() << " data:" << Values << endl;
@ -367,7 +367,7 @@ void Pstream::listCombineScatter
{ {
label belowID = myComm.below()[belowI]; label belowID = myComm.below()[belowI];
if (debug & 2) if (debug > 1)
{ {
Pout<< " sending to " << belowID << " data:" << Values << endl; Pout<< " sending to " << belowID << " data:" << Values << endl;
} }
@ -433,7 +433,7 @@ void Pstream::mapCombineGather
IPstream fromBelow(Pstream::scheduled, belowID); IPstream fromBelow(Pstream::scheduled, belowID);
Container receivedValues(fromBelow); Container receivedValues(fromBelow);
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< belowID << " data:" << receivedValues << endl; << belowID << " data:" << receivedValues << endl;
@ -464,7 +464,7 @@ void Pstream::mapCombineGather
// Send up Value // Send up Value
if (myComm.above() != -1) if (myComm.above() != -1)
{ {
if (debug & 2) if (debug > 1)
{ {
Pout<< " sending to " << myComm.above() Pout<< " sending to " << myComm.above()
<< " data:" << Values << endl; << " data:" << Values << endl;
@ -509,7 +509,7 @@ void Pstream::mapCombineScatter
IPstream fromAbove(Pstream::scheduled, myComm.above()); IPstream fromAbove(Pstream::scheduled, myComm.above());
fromAbove >> Values; fromAbove >> Values;
if (debug & 2) if (debug > 1)
{ {
Pout<< " received from " Pout<< " received from "
<< myComm.above() << " data:" << Values << endl; << myComm.above() << " data:" << Values << endl;
@ -521,7 +521,7 @@ void Pstream::mapCombineScatter
{ {
label belowID = myComm.below()[belowI]; label belowID = myComm.below()[belowI];
if (debug & 2) if (debug > 1)
{ {
Pout<< " sending to " << belowID << " data:" << Values << endl; Pout<< " sending to " << belowID << " data:" << Values << endl;
} }