From 96c8b06fbb4d8483244df8087b1236aaa221b4f6 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 7 Jul 2011 15:06:53 +0000 Subject: [PATCH] Correction of bug when reading med2.3 file. --- src/MEDLoader/MEDFileField.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) { -- 2.39.2