BUG: Fixing indexing on boundaryFaceFaces_ array
This commit is contained in:
parent
315732d7a8
commit
1446804c4a
@ -2,7 +2,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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -122,6 +122,7 @@ void Foam::regionModels::regionModel1D::initialise()
|
|||||||
|
|
||||||
surfaceScalarField& nMagSf = nMagSfPtr_();
|
surfaceScalarField& nMagSf = nMagSfPtr_();
|
||||||
|
|
||||||
|
localPyrolysisFaceI = 0;
|
||||||
forAll(intCoupledPatchIDs_, i)
|
forAll(intCoupledPatchIDs_, i)
|
||||||
{
|
{
|
||||||
const label patchI = intCoupledPatchIDs_[i];
|
const label patchI = intCoupledPatchIDs_[i];
|
||||||
@ -132,7 +133,7 @@ void Foam::regionModels::regionModel1D::initialise()
|
|||||||
forAll(pNormals, localFaceI)
|
forAll(pNormals, localFaceI)
|
||||||
{
|
{
|
||||||
const vector& n = pNormals[localFaceI];
|
const vector& n = pNormals[localFaceI];
|
||||||
const labelList& faces = boundaryFaceFaces_[localFaceI];
|
const labelList& faces = boundaryFaceFaces_[localPyrolysisFaceI++];
|
||||||
forAll (faces, faceI)
|
forAll (faces, faceI)
|
||||||
{
|
{
|
||||||
const label faceID = faces[faceI];
|
const label faceID = faces[faceI];
|
||||||
|
Loading…
Reference in New Issue
Block a user