From f48eb5a61d5108e55297e4498c075d20f48835d9 Mon Sep 17 00:00:00 2001
From: Matti Pellika <matti.pellikka@tut.fi>
Date: Thu, 26 Jan 2012 12:15:42 +0000
Subject: [PATCH] Add physical group number of chains in post-processing view
 names

---
 Geo/Homology.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Geo/Homology.cpp b/Geo/Homology.cpp
index f77d38a066..f82c55861a 100644
--- a/Geo/Homology.cpp
+++ b/Geo/Homology.cpp
@@ -433,7 +433,10 @@ int Chain::createPGroup()
 
 #if defined(HAVE_POST)
     // create PView for instant visualization
-    PView* view = new PView(getName(), "ElementData", m, data, 0, 1);
+    std::string pnum = "";
+    convert(physicalNum, pnum);
+    std::string postname = pnum + ": " + getName();
+    PView* view = new PView(postname, "ElementData", m, data, 0, 1);
     // the user should be interested about the orientations
     int size = 30;
     PViewOptions* opt = view->getOptions();
-- 
GitLab