]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Try to solve MEDWRITER_0 test on PV590 V9_7_0a1 V9_7_0a2 V9_7_0b1
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 21 Apr 2021 09:03:45 +0000 (11:03 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 21 Apr 2021 09:03:45 +0000 (11:03 +0200)
src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx
src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx

index 62d073cae17738cec4b32965a53fa828018787de..2cd0801d8a6549d08404af871797ada7faa9d80e 100644 (file)
@@ -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)
     {
index 62d073cae17738cec4b32965a53fa828018787de..2cd0801d8a6549d08404af871797ada7faa9d80e 100644 (file)
@@ -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)
     {