Fixing merge patch pairs
This commit is contained in:
parent
8083d7a9fc
commit
41ae38c39f
1 changed files with 23 additions and 0 deletions
|
@ -367,6 +367,29 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
attacher.changeMesh();
|
||||
|
||||
// Clean the mesh after attach
|
||||
labelList patchSizes(mesh.boundaryMesh().size());
|
||||
labelList patchStarts(mesh.boundaryMesh().size());
|
||||
|
||||
forAll (mesh.boundaryMesh(), patchI)
|
||||
{
|
||||
patchSizes[patchI] = mesh.boundaryMesh()[patchI].size();
|
||||
patchStarts[patchI] = mesh.boundaryMesh()[patchI].start();
|
||||
}
|
||||
|
||||
mesh.resetPrimitives
|
||||
(
|
||||
xferCopy<pointField>(mesh.points()),
|
||||
xferCopy<faceList>(mesh.faces()),
|
||||
xferCopy<labelList>(mesh.faceOwner()),
|
||||
xferCopy<labelList>(mesh.faceNeighbour()),
|
||||
patchSizes,
|
||||
patchStarts
|
||||
);
|
||||
|
||||
mesh.setInstance(runTime.constant());
|
||||
mesh.removeZones();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Reference in a new issue