Salome HOME
Try to solve MEDWRITER_0 test on PV590
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 21 Apr 2021 09:06:23 +0000 (11:06 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 21 Apr 2021 09:06:23 +0000 (11:06 +0200)
src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx

index 57922212fd51567fe84e0dfd84c4d019f63a9928..2cd0801d8a6549d08404af871797ada7faa9d80e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2017-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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)
     {