From fba5e532cc21407085416203270e316a9d9a1577 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 22 Apr 2021 14:46:11 +0200 Subject: [PATCH] Fix MEDWRITER_0 test --- .../plugin/RateOfFlowThroughSectionModule/VTKToMEDMem.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 !"; -- 2.39.2