]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
End of solution 1. Better solution rename family on the fly. agy/Fams4SerialKiller
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 30 Dec 2015 12:39:10 +0000 (13:39 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 30 Dec 2015 12:39:10 +0000 (13:39 +0100)
src/MEDLoader/MEDFileBasis.cxx
src/MEDLoader/MEDFileBasis.hxx
src/MEDLoader/MEDFileMeshLL.cxx

index 0ce48bf962d938dc2ea73563138d31dc8f39ddcb..dbe8dd7298b74ecc7586dcb75f6b476d80dac18e 100644 (file)
@@ -124,3 +124,8 @@ void IFams::addIdsIn(std::set<int>& s) const
 {
   s.insert(_v.begin(),_v.end());
 }
+
+void IFams::pushBack(int v)
+{
+  _v.push_back(v);
+}
index c7bf6f7cf78fd2afa952754daf6de9d460ed9429..a96c219f22692d0276e9da4d09a1ffdd288dc2de 100644 (file)
@@ -74,6 +74,7 @@ public:
   int minn() const;
   int maxAbs() const;
   void addIdsIn(std::set<int>& s) const;
+  void pushBack(int v);
 private:
   std::vector<int> _v;
 };
index 0d9caceb882366344822d4f0cbd8360c843c6f2f..b966849ace97ec843fbe4f66ae2e326d522cdb79 100644 (file)
@@ -209,7 +209,7 @@ void MEDFileMeshL2::ReadFamiliesAndGrps(med_idt fid, const std::string& meshName
       INTERP_KERNEL::AutoPtr<char> gro=new char[MED_LNAME_SIZE*ngro+1];
       MEDfamily23Info(fid,meshName.c_str(),i+1,nomfam,attide,attval,attdes,&numfam,gro);
       std::string famName=MEDLoaderBase::buildStringFromFortran(nomfam,MED_NAME_SIZE);
-      fams[famName]=numfam;
+      fams[famName].pushBack(numfam);
       for(int j=0;j<ngro;j++)
         {
           std::string groupname=MEDLoaderBase::buildStringFromFortran(gro+j*MED_LNAME_SIZE,MED_LNAME_SIZE);