Added debug to cell to quench Warnings
This commit is contained in:
parent
929414b804
commit
55f5ade6e9
3 changed files with 13 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -66,6 +66,8 @@ public:
|
|||
|
||||
static const char* const typeName;
|
||||
|
||||
//- Debug switch
|
||||
static int debug;
|
||||
|
||||
// Constructors
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue