BUG: paraFoam: keeping patchGroups thus doubling geometry

This commit is contained in:
mattijs
2012-09-25 09:50:37 +01:00
parent 15198110d8
commit f145cc8fa4

View File

@ -272,12 +272,14 @@ void Foam::vtkPV3Foam::updateInfoPatches
if (enabledEntriesSet.found(vtkGrpName))
{
//enabledEntriesSet.erase(vtkGrpName);
if (!reader_->GetShowGroupsOnly())
{
enabledEntriesSet.erase(vtkGrpName);
forAll(patchIDs, i)
{
const polyPatch& pp = patches[patchIDs[i]];
if (pp.size())
{
string vtkPatchName = pp.name() + " - patch";
enabledEntriesSet.insert(vtkPatchName);
}
@ -285,6 +287,7 @@ void Foam::vtkPV3Foam::updateInfoPatches
}
}
}
}
// Add patches
@ -406,10 +409,12 @@ void Foam::vtkPV3Foam::updateInfoPatches
if (enabledEntriesSet.found(vtkGrpName))
{
//enabledEntriesSet.erase(vtkGrpName);
if (!reader_->GetShowGroupsOnly())
{
enabledEntriesSet.erase(vtkGrpName);
forAll(patchIDs, i)
{
if (sizes[patchIDs[i]])
{
string vtkPatchName =
names[patchIDs[i]] + " - patch";
@ -419,6 +424,7 @@ void Foam::vtkPV3Foam::updateInfoPatches
}
}
}
}
// Add (non-zero) patches to the list of mesh parts