From 5fe3fb70adfed5996062ebae104300d2a4e9037e Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 15 Feb 2015 13:21:17 +0000
Subject: [PATCH] tentative fix for #255

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

diff --git a/Geo/GModelIO_UNV.cpp b/Geo/GModelIO_UNV.cpp
index 03bb8e1323..b071264240 100644
--- a/Geo/GModelIO_UNV.cpp
+++ b/Geo/GModelIO_UNV.cpp
@@ -183,6 +183,10 @@ int GModel::readUNV(const std::string &name)
             physicals[dim][elementary][physical] = "unnamed";
         }
       }
+      else if(record == 2477){ // groups elements
+        Msg::Info("Discarding element/node groups: currently still reading physical "
+                  "tags directly from elements");
+      }
     }
   }
 
@@ -309,8 +313,8 @@ int GModel::writeUNV(const std::string &name, bool saveAll, bool saveGroupsOfNod
         fprintf(fp, "\n");
       }
     }
-    fprintf(fp, "%6d\n", -1);
   }
+  fprintf(fp, "%6d\n", -1);
 
   fclose(fp);
   return 1;
-- 
GitLab