From: Anthony Geay Date: Thu, 16 Mar 2017 11:09:01 +0000 (+0100) Subject: On the road X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d8d71a4fbed390c576cb31d8f7be2d3860cbd36a;p=tools%2Fmedcoupling.git On the road --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 8da7ed67b..90ff2e9cd 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -4315,6 +4315,7 @@ void MEDFileFieldNameScope::setDtUnit(const std::string& dtUnit) void MEDFileFieldNameScope::copyNameScope(const MEDFileFieldNameScope& other) { _name=other._name; + _mesh_name=other._mesh_name; _dt_unit=other._dt_unit; } @@ -6220,7 +6221,10 @@ int MEDFileAnyTypeField1TS::LocateField(med_idt fid, const std::string& fieldNam fns[i]=tmp; found=(tmp==fieldName); if(found) - posCFormat=i; + { + posCFormat=i; + meshName=tmp2; + } } if(!found) { @@ -8642,6 +8646,7 @@ void MEDFileAnyTypeFieldMultiTSWithoutSDA::appendFieldProfile(const MEDCouplingF MCAuto obj(objC); objC->setFieldProfile(field,arr,mesh,meshDimRelToMax,profile,glob,*this); copyTinyInfoFrom(field,arr); + setMeshName(objC->getMeshName()); _time_steps.push_back(obj); }