Commit 38870e32 authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

no curvature refinement if no different maxLevel

parent e4bb4fc0
...@@ -1164,7 +1164,12 @@ Foam::labelList Foam::meshRefinement::refineCandidates ...@@ -1164,7 +1164,12 @@ Foam::labelList Foam::meshRefinement::refineCandidates
// Refinement based on curvature of surface // Refinement based on curvature of surface
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (curvatureRefinement && (curvature >= -1 && curvature <= 1)) if
(
curvatureRefinement
&& (curvature >= -1 && curvature <= 1)
&& (surfaces_.minLevel() != surfaces_.maxLevel())
)
{ {
label nCurv = markSurfaceCurvatureRefinement label nCurv = markSurfaceCurvatureRefinement
( (
......
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