From cc3cbf712092701e646451e1b73d3c5cc6558454 Mon Sep 17 00:00:00 2001
From: Koen Hillewaert <koen.hillewaert@cenaero.be>
Date: Thu, 14 Sep 2017 13:19:41 +0200
Subject: [PATCH] store physical names; removed a std::cout comment

---
 Geo/GModel.cpp        | 5 -----
 Geo/GModelIO_CGNS.cpp | 2 ++
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp
index 26f053ae17..5bdb7cb7a0 100644
--- a/Geo/GModel.cpp
+++ b/Geo/GModel.cpp
@@ -1697,11 +1697,6 @@ void GModel::_storePhysicalTagsInEntities(int dim,
         }
       }
     }
-
-    else {
-      std::cout << "Could not find entity " << std::endl;
-    }
-
   }
 }
 
diff --git a/Geo/GModelIO_CGNS.cpp b/Geo/GModelIO_CGNS.cpp
index 1fa7a1efca..c3f72632ab 100644
--- a/Geo/GModelIO_CGNS.cpp
+++ b/Geo/GModelIO_CGNS.cpp
@@ -1794,6 +1794,7 @@ int GModel::readCGNSUnstructured(const std::string& fileName)
     int tag = bIter->first;
     std::string name = bIter->second;
     physicalSurfaces[tag][tag] = name;
+    physicalNames[std::make_pair(meshDim-1,tag)] = name;
   }
   
   _storePhysicalTagsInEntities(meshDim-1,physicalSurfaces);
@@ -1805,6 +1806,7 @@ int GModel::readCGNSUnstructured(const std::string& fileName)
     int tag = zIter->first;
     std::string name = zIter->second;
     physicalZones[tag][tag] = name;
+    physicalNames[std::make_pair(meshDim,tag)] = name;
   }
   
   _storePhysicalTagsInEntities(meshDim,physicalZones);
-- 
GitLab