From 4dd7cc3bf5b5b8bfb21065dff31f8a12c64c8bbf Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 3 Feb 2012 12:45:46 +0000
Subject: [PATCH] ENH: topoSet: print type of set

---
 .../utilities/mesh/manipulation/topoSet/topoSet.C | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/applications/utilities/mesh/manipulation/topoSet/topoSet.C b/applications/utilities/mesh/manipulation/topoSet/topoSet.C
index 5aedbdc7750..cd2a96fc12e 100644
--- a/applications/utilities/mesh/manipulation/topoSet/topoSet.C
+++ b/applications/utilities/mesh/manipulation/topoSet/topoSet.C
@@ -286,7 +286,8 @@ int main(int argc, char *argv[])
             )
             {
                 currentSet = topoSet::New(setType, mesh, setName, 10000);
-                Info<< "Created set " << setName << endl;
+                Info<< "Created " << currentSet().type() << " "
+                    << setName << endl;
             }
             else if (action == topoSetSource::REMOVE)
             {
@@ -301,7 +302,8 @@ int main(int argc, char *argv[])
                     setName,
                     IOobject::MUST_READ
                 );
-                Info<< "Read set " << setName << " with size "
+                Info<< "Read set " << currentSet().type() << " "
+                    << setName << " with size "
                     << returnReduce(currentSet().size(), sumOp<label>())
                     << endl;
             }
@@ -367,19 +369,19 @@ int main(int argc, char *argv[])
                 break;
 
                 case topoSetSource::CLEAR:
-                    Info<< "    Clearing set" << endl;
+                    Info<< "    Clearing " << currentSet().type() << endl;
                     currentSet().clear();
                     currentSet().write();
                 break;
 
                 case topoSetSource::INVERT:
-                    Info<< "    Inverting set" << endl;
+                    Info<< "    Inverting " << currentSet().type() << endl;
                     currentSet().invert(currentSet().maxSize(mesh));
                     currentSet().write();
                 break;
 
                 case topoSetSource::REMOVE:
-                    Info<< "    Removing set" << endl;
+                    Info<< "    Removing " << currentSet().type() << endl;
                     removeSet(mesh, setType, setName);
                 break;
 
@@ -392,7 +394,8 @@ int main(int argc, char *argv[])
 
             if (currentSet.valid())
             {
-                Info<< "    Set " << currentSet().name()
+                Info<< "    " << currentSet().type() << " "
+                    << currentSet().name()
                     << " now size "
                     << returnReduce(currentSet().size(), sumOp<label>())
                     << endl;
-- 
GitLab