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