From e88b8ef4cc37aaf514321ff71cc7aa6bee1dcfe2 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 22 Apr 2021 14:42:19 +0200 Subject: [PATCH] Fix MEDWRITER_0 test --- .../plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx | 3 ++- src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx b/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx index 2cd0801d..68a3c9a7 100644 --- a/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx +++ b/src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/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 !"; diff --git a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx b/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx index 2cd0801d..68a3c9a7 100644 --- a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx +++ b/src/Plugins/MEDWriter/plugin/MEDWriterIO/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