]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
On the road
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 16 Mar 2017 11:09:01 +0000 (12:09 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 16 Mar 2017 11:09:01 +0000 (12:09 +0100)
src/MEDLoader/MEDFileField.cxx

index 8da7ed67b34814a0e42e41bf00f814daddf83b80..90ff2e9cdbf54df359ef64dcceea6ee0da6505c5 100644 (file)
@@ -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<MEDFileAnyTypeField1TSWithoutSDA> obj(objC);
   objC->setFieldProfile(field,arr,mesh,meshDimRelToMax,profile,glob,*this);
   copyTinyInfoFrom(field,arr);
+  setMeshName(objC->getMeshName());
   _time_steps.push_back(obj);
 }