]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
tuleap20060 : bug correction inside medwriter in int64 mode
authorAnthony GEAY <anthony.geay@edf.fr>
Mon, 21 Sep 2020 21:17:06 +0000 (23:17 +0200)
committerAnthony GEAY <anthony.geay@edf.fr>
Mon, 21 Sep 2020 21:17:06 +0000 (23:17 +0200)
src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx

index 93eb8f043b11d623ba5a9b493c3926519d5ccd45..6f4644828bd2193c5739e879e6ca0ae4147622f9 100644 (file)
@@ -404,7 +404,7 @@ void AppendMCFieldFrom(MEDCoupling::TypeOfField tf, MEDCouplingMesh *mesh, MEDFi
   MCAuto<DataArrayIdType> daId(MEDCoupling::DynamicCast<DataArray,DataArrayIdType>(da));
   if(dai.isNotNull() || daId.isNotNull())
     {
-      std::string fieldName(dai->getName());
+      std::string fieldName(da->getName());
       if((fieldName!=FAMFIELD_FOR_CELLS || tf!=MEDCoupling::ON_CELLS) && (fieldName!=FAMFIELD_FOR_NODES || tf!=MEDCoupling::ON_NODES))
         {
           if(!dai)