Added debug to cell to quench Warnings

This commit is contained in:
Henrik Rusche 2012-06-15 00:34:42 +02:00
parent 929414b804
commit 55f5ade6e9
3 changed files with 13 additions and 6 deletions

View file

@ -31,6 +31,8 @@ License
const char* const Foam::cell::typeName = "cell";
int Foam::cell::debug(debug::debugSwitch("cell", 0));
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::labelList Foam::cell::labels(const unallocFaceList& f) const

View file

@ -66,6 +66,8 @@ public:
static const char* const typeName;
//- Debug switch
static int debug;
// Constructors

View file

@ -96,6 +96,8 @@ Foam::label Foam::cell::opposingFaceLabel
oppositeFaceLabel = curFaceLabels[faceI];
}
else
{
if(debug)
{
// There has already been an opposite face.
// Non-prismatic cell
@ -107,6 +109,7 @@ Foam::label Foam::cell::opposingFaceLabel
}
}
}
}
return oppositeFaceLabel;
}