From: Anthony Geay Date: Wed, 21 Apr 2021 09:03:45 +0000 (+0200) Subject: Try to solve MEDWRITER_0 test on PV590 X-Git-Tag: V9_7_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3924e75730abdba4352d54a56d79a2fbd0da9c3a;p=modules%2Fparavis.git Try to solve MEDWRITER_0 test on PV590 --- diff --git a/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx b/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx index 62d073ca..2cd0801d 100644 --- a/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx +++ b/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx @@ -23,6 +23,7 @@ #include "vtkAdjacentVertexIterator.h" #include "vtkIntArray.h" #include "vtkLongArray.h" +#include "vtkLongLongArray.h" #include "vtkCellData.h" #include "vtkPointData.h" #include "vtkFloatArray.h" @@ -163,6 +164,13 @@ DataArrayIdType *ConvertVTKArrayToMCArrayInt(vtkDataArray *data) std::copy(pt,pt+nbElts,ptOut); return ret.retn(); } + vtkLongLongArray *d1l(vtkLongLongArray::SafeDownCast(data)); + if(d1l) + { + const long long *pt(d1l->GetPointer(0)); + std::copy(pt,pt+nbElts,ptOut); + return ret.retn(); + } vtkIdTypeArray *d3(vtkIdTypeArray::SafeDownCast(data)); if(d3) { diff --git a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx b/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx index 62d073ca..2cd0801d 100644 --- a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx +++ b/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx @@ -23,6 +23,7 @@ #include "vtkAdjacentVertexIterator.h" #include "vtkIntArray.h" #include "vtkLongArray.h" +#include "vtkLongLongArray.h" #include "vtkCellData.h" #include "vtkPointData.h" #include "vtkFloatArray.h" @@ -163,6 +164,13 @@ DataArrayIdType *ConvertVTKArrayToMCArrayInt(vtkDataArray *data) std::copy(pt,pt+nbElts,ptOut); return ret.retn(); } + vtkLongLongArray *d1l(vtkLongLongArray::SafeDownCast(data)); + if(d1l) + { + const long long *pt(d1l->GetPointer(0)); + std::copy(pt,pt+nbElts,ptOut); + return ret.retn(); + } vtkIdTypeArray *d3(vtkIdTypeArray::SafeDownCast(data)); if(d3) {