mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
markSurfaceRefinement fixes
This commit is contained in:
@ -641,7 +641,7 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (refineCell[own] != -1)
|
else if (refineCell[own] == -1)
|
||||||
{
|
{
|
||||||
// boundary face with unmarked owner
|
// boundary face with unmarked owner
|
||||||
|
|
||||||
@ -658,18 +658,25 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
|
|||||||
|
|
||||||
if (surfI != -1)
|
if (surfI != -1)
|
||||||
{
|
{
|
||||||
if
|
// Make sure it is my side that wants refinement.
|
||||||
(
|
label surfaceMinLevel =
|
||||||
!markForRefine
|
surfaces_.minLevelField(surfI)[hit.index()];
|
||||||
(
|
|
||||||
surfI,
|
if (surfaceMinLevel > cellLevel[own])
|
||||||
nAllowRefine,
|
|
||||||
refineCell[own],
|
|
||||||
nRefine
|
|
||||||
)
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
break;
|
if
|
||||||
|
(
|
||||||
|
!markForRefine
|
||||||
|
(
|
||||||
|
surfI,
|
||||||
|
nAllowRefine,
|
||||||
|
refineCell[own],
|
||||||
|
nRefine
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user