Removed temporary debug stuff from polyhedralRefinement

This commit is contained in:
Vuko Vukcevic 2019-02-17 10:01:18 +01:00
parent 33c4eb5986
commit 712807e126

View file

@ -2113,37 +2113,6 @@ void Foam::polyhedralRefinement::setCellsToRefine
// Transfer the contents into the data member (ordinary list) // Transfer the contents into the data member (ordinary list)
cellsToRefine_.transfer(cellsToRefineDynamic); cellsToRefine_.transfer(cellsToRefineDynamic);
// Temporary debug stuff: Take a look whether we have selected any face
// order error cells
const cellSet& errorCellsOwn =
mesh_.time().lookupObject<cellSet>("errorCellsOwnBeforeAMR");
const cellSet& errorCellsNei =
mesh_.time().lookupObject<cellSet>("errorCellsNeiBeforeAMR");
// Loop through all cellsToRefine_ and check whether we have marked error
// cells for refinement
forAll (cellsToRefine_, i)
{
// Get cell indexd
const label cellI = cellsToRefine_[i];
if (errorCellsOwn.found(cellI))
{
Pout<< "WARNING! " << nl
<< "Cell: " << cellI << " marked for refinement, and it has"
<< " ordering error in OWNER list!"
<< endl;
}
if (errorCellsNei.found(cellI))
{
Pout<< "WARNING! " << nl
<< "Cell: " << cellI << " marked for refinement, and it has"
<< " ordering error in NEIGHBOUR list!"
<< endl;
}
}
Info<< "Selected " << returnReduce(cellsToRefine_.size(), sumOp<label>()) Info<< "Selected " << returnReduce(cellsToRefine_.size(), sumOp<label>())
<< " cells to refine." << endl; << " cells to refine." << endl;
} }