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";
|
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
|
||||||
|
|
|
@ -66,6 +66,8 @@ public:
|
||||||
|
|
||||||
static const char* const typeName;
|
static const char* const typeName;
|
||||||
|
|
||||||
|
//- Debug switch
|
||||||
|
static int debug;
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue