From c59400961e2482af74201452b1c6fa8450c2646f Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Fri, 4 May 2018 00:18:14 +0200 Subject: [PATCH] Gmsh reader: added parsing of physical names (unused yet!) --- src/mesh/GmshReader.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mesh/GmshReader.cpp b/src/mesh/GmshReader.cpp index 25c1a4b7b..0bb82b29e 100644 --- a/src/mesh/GmshReader.cpp +++ b/src/mesh/GmshReader.cpp @@ -495,8 +495,14 @@ void GmshReader:: __readPhysicalNames2_2() { - std::cerr << __FILE__ << ':' << __LINE__ << ": NIY\n"; - std::exit(0); + const int number_of_names = this->_getInteger(); + for (int i=0; i<number_of_names; ++i) { + const int physical_dimension = this->_getInteger(); + const int physical_number = this->_getInteger(); + std::string physical_name; + m_fin >> physical_name; + std::cout << "- " << rang::style::bold << physical_name << " <-> " << physical_number << " for dimension " << physical_dimension << rang::style::reset << " [IGNORED]\n"; + } } void -- GitLab