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"; const char* const Foam::cell::typeName = "cell";
int Foam::cell::debug(debug::debugSwitch("cell", 0));
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::labelList Foam::cell::labels(const unallocFaceList& f) const Foam::labelList Foam::cell::labels(const unallocFaceList& f) const

View file

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

View file

@ -97,12 +97,15 @@ Foam::label Foam::cell::opposingFaceLabel
} }
else else
{ {
// There has already been an opposite face. if(debug)
// Non-prismatic cell {
Info<< "Multiple faces not sharing vertex: " // There has already been an opposite face.
<< oppositeFaceLabel << " and " // Non-prismatic cell
<< curFaceLabels[faceI] << endl; Info<< "Multiple faces not sharing vertex: "
return -1; << oppositeFaceLabel << " and "
<< curFaceLabels[faceI] << endl;
return -1;
}
} }
} }
} }