Commit abf75f3a authored by Henry's avatar Henry
Browse files

tetDecomposer: Rename enumeration elements for consistency with polyMesh

parent fc4ecc22
......@@ -202,7 +202,7 @@ void Foam::tetDecomposer::setRefinement
// Add face centre points
if (decomposeType == FACECENTRETETS)
if (decomposeType == FACE_CENTRE_TRIS)
{
faceToPoint_.setSize(mesh_.nFaces());
forAll(mesh_.faceCentres(), faceI)
......@@ -225,7 +225,7 @@ void Foam::tetDecomposer::setRefinement
faceOwnerCells_.setSize(mesh_.nFaces());
faceNeighbourCells_.setSize(mesh_.nFaces());
if (decomposeType == FACECENTRETETS)
if (decomposeType == FACE_CENTRE_TRIS)
{
forAll(faceOwnerCells_, faceI)
{
......@@ -267,7 +267,7 @@ void Foam::tetDecomposer::setRefinement
: faceNeighbourCells_[faceI]
);
if (decomposeType == FACECENTRETETS)
if (decomposeType == FACE_CENTRE_TRIS)
{
forAll(f, fp)
{
......@@ -341,7 +341,7 @@ void Foam::tetDecomposer::setRefinement
}
if (decomposeType == FACECENTRETETS)
if (decomposeType == FACE_CENTRE_TRIS)
{
forAll(f, fp)
{
......@@ -628,7 +628,7 @@ void Foam::tetDecomposer::setRefinement
// Determine tets on either side
label thisTet, otherTet;
if (decomposeType == FACECENTRETETS)
if (decomposeType == FACE_CENTRE_TRIS)
{
if (mesh_.faceOwner()[faceI] == cellI)
{
......
......@@ -63,11 +63,14 @@ public:
enum decompositionType
{
FACECENTRETETS, // tet decomposition using facectr and cellctr
FACEDIAGTETS // tet decomposition using face diag and cellctr
FACE_CENTRE_TRIS, //- Faces decomposed into triangles
// using face-centre
FACE_DIAG_TRIS //- Faces decomposed into triangles diagonally
};
static const NamedEnum<decompositionType, 2> decompositionTypeNames;
private:
// Private data
......@@ -89,6 +92,7 @@ private:
// the added tet on the neighbour side
labelListList faceNeighbourCells_;
// Private Member Functions
//- Modify a face
......@@ -187,6 +191,7 @@ public:
void updateMesh(const mapPolyMesh&);
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment