Skip to content
Snippets Groups Projects
Commit 7b321cb6 authored by mattijs's avatar mattijs
Browse files

initialisation errors

parent e3710c2b
No related branches found
No related tags found
No related merge requests found
......@@ -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_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment