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

BUG: #680: star4ToFoam truncates boundaries

parent 14da496a
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -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-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -303,14 +303,12 @@ void Foam::meshReader::createPolyBoundary() ...@@ -303,14 +303,12 @@ void Foam::meshReader::createPolyBoundary()
Info<< "Added " << nMissingFaces << " unmatched faces" << endl; Info<< "Added " << nMissingFaces << " unmatched faces" << endl;
// Add missing faces to last patch ('Default_Empty' etc.)
if (nMissingFaces > 0) if (nMissingFaces > 0)
{ {
patchSizes_.last() = nMissingFaces; patchSizes_.last() = nMissingFaces;
} }
else
{
patchStarts_.setSize(patchStarts_.size() - 1);
}
// reset the size of the face list // reset the size of the face list
meshFaces_.setSize(nCreatedFaces); meshFaces_.setSize(nCreatedFaces);
......
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