no curvature refinement if no different maxLevel

This commit is contained in:
mattijs
2008-08-08 11:01:07 +01:00
parent e4bb4fc0f0
commit 38870e3256

View File

@ -1164,7 +1164,12 @@ Foam::labelList Foam::meshRefinement::refineCandidates
// 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
(