From: Anthony Geay Date: Thu, 22 Apr 2021 12:46:11 +0000 (+0200) Subject: Fix MEDWRITER_0 test X-Git-Tag: V9_7_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8973e22c18d26d4bebd680667279c4cae0159346;p=tools%2Fparavisaddons_common.git Fix MEDWRITER_0 test --- diff --git a/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx b/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx index 2cd0801..68a3c9a 100644 --- a/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx +++ b/src/RateOfFlowThroughSection/plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx @@ -259,7 +259,8 @@ DataArray *ConvertVTKArrayToMCArray(vtkDataArray *data) vtkLongArray *d3(vtkLongArray::SafeDownCast(data)); vtkUnsignedCharArray *d4(vtkUnsignedCharArray::SafeDownCast(data)); vtkIdTypeArray *d5(vtkIdTypeArray::SafeDownCast(data)); - if(d2 || d3 || d4 || d5) + vtkLongLongArray *d6(vtkLongLongArray::SafeDownCast(data)); + if(d2 || d3 || d4 || d5 || d6) return ConvertVTKArrayToMCArrayInt(data); std::ostringstream oss; oss << "ConvertVTKArrayToMCArray : unrecognized array \"" << typeid(*data).name() << "\" type !";