set number of patches before changing faces

This commit is contained in:
mattijs
2008-07-29 11:50:18 +01:00
parent 6bd5df7f41
commit d8638da06f

View File

@ -275,6 +275,12 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
patchIndices[patchI] = patchIndex(bm[patchI]); patchIndices[patchI] = patchIndex(bm[patchI]);
} }
// Temporary: update number of allowable patches. This should be
// determined at the top - before adding anything.
meshMod_.setNumPatches(patchNames_.size());
const faceZoneMesh& fz = m.faceZones(); const faceZoneMesh& fz = m.faceZones();
labelList faceZoneIndices(fz.size()); labelList faceZoneIndices(fz.size());