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

BUG: paraFoam: keeping patchGroups thus doubling geometry

parent 15198110
Branches
Tags
No related merge requests found
...@@ -272,14 +272,17 @@ void Foam::vtkPV3Foam::updateInfoPatches ...@@ -272,14 +272,17 @@ void Foam::vtkPV3Foam::updateInfoPatches
if (enabledEntriesSet.found(vtkGrpName)) if (enabledEntriesSet.found(vtkGrpName))
{ {
//enabledEntriesSet.erase(vtkGrpName);
if (!reader_->GetShowGroupsOnly()) if (!reader_->GetShowGroupsOnly())
{ {
enabledEntriesSet.erase(vtkGrpName);
forAll(patchIDs, i) forAll(patchIDs, i)
{ {
const polyPatch& pp = patches[patchIDs[i]]; const polyPatch& pp = patches[patchIDs[i]];
string vtkPatchName = pp.name() + " - patch"; if (pp.size())
enabledEntriesSet.insert(vtkPatchName); {
string vtkPatchName = pp.name() + " - patch";
enabledEntriesSet.insert(vtkPatchName);
}
} }
} }
} }
...@@ -406,14 +409,17 @@ void Foam::vtkPV3Foam::updateInfoPatches ...@@ -406,14 +409,17 @@ void Foam::vtkPV3Foam::updateInfoPatches
if (enabledEntriesSet.found(vtkGrpName)) if (enabledEntriesSet.found(vtkGrpName))
{ {
//enabledEntriesSet.erase(vtkGrpName);
if (!reader_->GetShowGroupsOnly()) if (!reader_->GetShowGroupsOnly())
{ {
enabledEntriesSet.erase(vtkGrpName);
forAll(patchIDs, i) forAll(patchIDs, i)
{ {
string vtkPatchName = if (sizes[patchIDs[i]])
names[patchIDs[i]] + " - patch"; {
enabledEntriesSet.insert(vtkPatchName); string vtkPatchName =
names[patchIDs[i]] + " - patch";
enabledEntriesSet.insert(vtkPatchName);
}
} }
} }
} }
......
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