Skip to content
Snippets Groups Projects
Commit 87504d50 authored by mattijs's avatar mattijs
Browse files

BUG: regionToCell: incorrect indexing of remote values. Fixes #818.

parent 1ac7f2e8
Branches
Tags
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. \\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -90,11 +90,7 @@ void Foam::regionToCell::markRegionFaces ...@@ -90,11 +90,7 @@ void Foam::regionToCell::markRegionFaces
{ {
label facei = pp.start()+i; label facei = pp.start()+i;
label bFacei = facei-mesh_.nInternalFaces(); label bFacei = facei-mesh_.nInternalFaces();
if if (selectedCell[faceCells[i]] != nbrSelected[bFacei])
(
selectedCell[faceCells[i]]
!= selectedCell[nbrSelected[bFacei]]
)
{ {
regionFace[facei] = true; regionFace[facei] = true;
} }
......
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