Commit 1d72a035 authored by Andrew Heather's avatar Andrew Heather
Browse files
parents 2349fdaa 7e3601a0
......@@ -47,7 +47,11 @@ addToRunTimeSelectionTable(dynamicFvMesh, dynamicRefineFvMesh, IOobject);
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
label dynamicRefineFvMesh::count(const PackedBoolList& l, const unsigned int val)
label dynamicRefineFvMesh::count
(
const PackedBoolList& l,
const unsigned int val
)
{
label n = 0;
forAll(l, i)
......@@ -915,6 +919,10 @@ dynamicRefineFvMesh::dynamicRefineFvMesh(const IOobject& io)
{
labelList neiLevel(nFaces());
for (label faceI = 0; faceI < nInternalFaces(); faceI++)
{
neiLevel[faceI] = cellLevel[faceNeighbour()[faceI]];
}
for (label faceI = nInternalFaces(); faceI < nFaces(); faceI++)
{
neiLevel[faceI] = cellLevel[faceOwner()[faceI]];
......
......@@ -1022,8 +1022,7 @@ void Foam::refinementHistory::compact()
}
splitCells_.transfer(newSplitCells);
freeSplitCells_.clear();
freeSplitCells_.labelList::clear();
freeSplitCells_.clearStorage();
if (debug)
......@@ -1142,7 +1141,7 @@ bool Foam::refinementHistory::writeData(Ostream& os) const
Foam::Istream& Foam::operator>>(Istream& is, refinementHistory& rh)
{
rh.freeSplitCells_.clear();
rh.freeSplitCells_.clearStorage();
is >> rh.splitCells_ >> rh.visibleCells_;
......
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