From bd6c4ee5807805d0c204b00e8f614e3ee4ea41cf Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 25 Sep 2020 14:12:43 +0200 Subject: [PATCH] Use new MEDFileIntField class name --- .../plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx | 5 +++-- .../plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx | 5 ++++- src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx b/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx index 93eb8f04..9c424df5 100644 --- a/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx +++ b/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx @@ -72,7 +72,8 @@ using MEDCoupling::MEDFileUMesh; using MEDCoupling::MEDFileFields; using MEDCoupling::MEDFileMeshes; -using MEDCoupling::MEDFileIntField1TS; +using MEDCoupling::MEDFileInt32Field1TS; +using MEDCoupling::MEDFileInt64Field1TS; using MEDCoupling::MEDFileField1TS; using MEDCoupling::MEDFileIntFieldMultiTS; using MEDCoupling::MEDFileFieldMultiTS; @@ -404,7 +405,7 @@ void AppendMCFieldFrom(MEDCoupling::TypeOfField tf, MEDCouplingMesh *mesh, MEDFi MCAuto daId(MEDCoupling::DynamicCast(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) diff --git a/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx b/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx index 94d57f98..1f0adefb 100644 --- a/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx +++ b/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx @@ -452,13 +452,16 @@ void MEDFileFieldRepresentationLeavesArrays::appendFields(const MEDTimeReq *tr, MCAuto f1ts((operator->())->getTimeStepAtPos(tr->getCurrent())); MEDFileAnyTypeField1TS *f1tsPtr(f1ts); MEDFileField1TS *f1tsPtrDbl(dynamic_cast(f1tsPtr)); - MEDFileIntField1TS *f1tsPtrInt(dynamic_cast(f1tsPtr)); + MEDFileInt32Field1TS *f1tsPtrInt(dynamic_cast(f1tsPtr)); + MEDFileInt64Field1TS *f1tsPtrInt64(dynamic_cast(f1tsPtr)); MEDFileFloatField1TS *f1tsPtrFloat(dynamic_cast(f1tsPtr)); DataArray *crudeArr(0),*postProcessedArr(0); if(f1tsPtrDbl) crudeArr=f1tsPtrDbl->getUndergroundDataArray(); else if(f1tsPtrInt) crudeArr=f1tsPtrInt->getUndergroundDataArray(); + else if(f1tsPtrInt64) + crudeArr=f1tsPtrInt64->getUndergroundDataArray(); else if(f1tsPtrFloat) crudeArr=f1tsPtrFloat->getUndergroundDataArray(); else diff --git a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx b/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx index 6f464482..9c424df5 100644 --- a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx +++ b/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx @@ -72,7 +72,8 @@ using MEDCoupling::MEDFileUMesh; using MEDCoupling::MEDFileFields; using MEDCoupling::MEDFileMeshes; -using MEDCoupling::MEDFileIntField1TS; +using MEDCoupling::MEDFileInt32Field1TS; +using MEDCoupling::MEDFileInt64Field1TS; using MEDCoupling::MEDFileField1TS; using MEDCoupling::MEDFileIntFieldMultiTS; using MEDCoupling::MEDFileFieldMultiTS; -- 2.39.2