From: ageay Date: Thu, 7 Jul 2011 15:06:53 +0000 (+0000) Subject: Correction of bug when reading med2.3 file. X-Git-Tag: V6_3_1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2495df53725aae12a77a4401addec1f4716391db;p=tools%2Fmedcoupling.git Correction of bug when reading med2.3 file. --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 17b6fe7d6..7b958119c 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -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) {