mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: crash during gap refinement (fixes #1919)
- fixed indexing error (crashes under windows). No crash but still incorrect on other systems
This commit is contained in:
@ -453,12 +453,13 @@ Foam::label Foam::meshRefinement::markSurfaceGapRefinement
|
||||
|
||||
forAll(surf1, i)
|
||||
{
|
||||
// Combine selfProx of shell and surfaces. Ignore regions for
|
||||
// now
|
||||
// Combine selfProx of shell and surfaces.
|
||||
// Ignore regions for now
|
||||
const label cellI = cellMap[i];
|
||||
|
||||
const label shelli =
|
||||
(
|
||||
cellToCompact[cellI] != -1
|
||||
(cellI != -1 && cellToCompact[cellI] != -1)
|
||||
? gapShell[cellToCompact[cellI]]
|
||||
: -1
|
||||
);
|
||||
@ -482,8 +483,6 @@ Foam::label Foam::meshRefinement::markSurfaceGapRefinement
|
||||
)
|
||||
{
|
||||
// Found intersection with surface. Check opposite normal.
|
||||
label cellI = cellMap[i];
|
||||
|
||||
if
|
||||
(
|
||||
cellI != -1
|
||||
|
||||
Reference in New Issue
Block a user