mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: incorrect bitSet auto-vivify in snappy
- should use bitSet::set() and not bitSet::operator[] to auto-vivify out-of-range entries - use bitSet::test() instead of bitSet::operator[] when testing non-const variables - circumvents any potential out-of-range issues.
This commit is contained in:
@ -1025,9 +1025,9 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
else
|
||||
{
|
||||
facePatch[facei] = nearestAdaptPatch[facei];
|
||||
if (isMasterFace[facei])
|
||||
if (isMasterFace.test(facei))
|
||||
{
|
||||
nBaffleFaces++;
|
||||
++nBaffleFaces;
|
||||
}
|
||||
|
||||
// Do NOT update boundary data since this would grow
|
||||
|
||||
Reference in New Issue
Block a user