]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correction of bug when reading med2.3 file. V6_3_1_BR V6_3_1 V6_3_1rc2 V6_3_1rc3
authorageay <ageay>
Thu, 7 Jul 2011 15:06:53 +0000 (15:06 +0000)
committerageay <ageay>
Thu, 7 Jul 2011 15:06:53 +0000 (15:06 +0000)
src/MEDLoader/MEDFileField.cxx

index 17b6fe7d66a039f7ab2a062a892bddc90aaed19c..7b958119c39b6931b5c5ef38f994a5845afdccce 100644 (file)
@@ -252,7 +252,15 @@ try:_type(atype),_father(fath),_profile_it(profileIt)
   _profile=MEDLoaderBase::buildStringFromFortran(pflname,MED_NAME_SIZE);
   _localization=MEDLoaderBase::buildStringFromFortran(locname,MED_NAME_SIZE);
   if(type==ON_CELLS && !_localization.empty())
-    setType(ON_GAUSS_PT);
+    {
+      if(_localization!="MED_GAUSS_ELNO")
+        setType(ON_GAUSS_PT);
+      else
+        {
+          setType(ON_GAUSS_NE);
+          _localization.clear();
+        }
+    }
 }
 catch(INTERP_KERNEL::Exception& e)
 {