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

BUG: fvFieldReconstructorReconstructFields.C: indexing outside of internal faces

parent 1aa60618
Branches
Tags
No related merge requests found
......@@ -379,12 +379,12 @@ Foam::fvFieldReconstructor::reconstructFvSurfaceField
{
const labelList& faceMap = faceProcAddressing_[procI];
// Addressing into original field
labelList curAddr(faceMap.size());
// Correctly oriented copy of internal field
Field<Type> procInternalField(procField.internalField());
// Addressing into original field
labelList curAddr(procInternalField.size());
forAll(faceMap, addrI)
forAll(procInternalField, addrI)
{
curAddr[addrI] = mag(faceMap[addrI])-1;
if (faceMap[addrI] < 0)
......
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