mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
mergePolyMesh: Added check for zero patches in the master mesh
Patch contributed by Jakub Benda Resolves bug-report https://bugs.openfoam.org/view.php?id=2727
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -35,7 +35,7 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTypeNameAndDebug(mergePolyMesh, 1);
|
||||
defineTypeNameAndDebug(mergePolyMesh, 1);
|
||||
}
|
||||
|
||||
|
||||
@ -378,7 +378,6 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -410,7 +409,9 @@ void Foam::mergePolyMesh::merge()
|
||||
Info<< "Adding new patches. " << endl;
|
||||
|
||||
label endOfLastPatch =
|
||||
oldPatches[patchi - 1].start() + oldPatches[patchi - 1].size();
|
||||
patchi == 0
|
||||
? 0
|
||||
: oldPatches[patchi - 1].start() + oldPatches[patchi - 1].size();
|
||||
|
||||
for (; patchi < patchNames_.size(); patchi++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user