Commit f294ca46 authored by mattijs's avatar mattijs
Browse files

initialisation of normal

parent 295a4e54
......@@ -835,7 +835,7 @@ Foam::label Foam::meshRefinement::markSurfaceCurvatureRefinement
// minLevel) and cache per cell the max surface level and the local normal
// on that surface.
labelList cellMaxLevel(mesh_.nCells(), -1);
vectorField cellMaxNormal(mesh_.nCells());
vectorField cellMaxNormal(mesh_.nCells(), vector::zero);
{
// Per segment the normals of the surfaces
......@@ -1226,6 +1226,11 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::refine
{
mesh_.movePoints(map().preMotionPoints());
}
else
{
// Delete mesh volumes.
mesh_.clearOut();
}
// Update intersection info
updateMesh(map, getChangedFaces(map, cellsToRefine));
......
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