From: Anthony Geay Date: Wed, 21 Apr 2021 09:06:23 +0000 (+0200) Subject: Try to solve MEDWRITER_0 test on PV590 X-Git-Tag: V9_7_0rc2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88dd12425ad93d922a77795aceacb83bdd08b9e1;p=tools%2Fparavisaddons_common.git Try to solve MEDWRITER_0 test on PV590 --- diff --git a/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx b/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx index 5792221..2cd0801 100644 --- a/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx +++ b/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx @@ -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) {