diff --git a/MeshLib/IO/VtkIO/VtuInterface-impl.h b/MeshLib/IO/VtkIO/VtuInterface-impl.h index 8825fa2d9acbe4bc26870d67bebfcc995088dad9..7b82d496742c828cbe61ff6ec8d0d767c364966b 100644 --- a/MeshLib/IO/VtkIO/VtuInterface-impl.h +++ b/MeshLib/IO/VtkIO/VtuInterface-impl.h @@ -40,10 +40,6 @@ bool VtuInterface::writeVTU(std::string const &file_name, const int num_partitio return false; } - // See http://www.paraview.org/Bug/view.php?id=13382 - if(_data_mode == vtkXMLWriter::Appended) - WARN("Appended data mode is currently not supported, written file is not valid!"); - vtkNew<MeshLib::VtkMappedMeshSource> vtkSource; vtkSource->SetMesh(_mesh); @@ -64,6 +60,9 @@ bool VtuInterface::writeVTU(std::string const &file_name, const int num_partitio // implemented and doing so is not trivial. Therefore for ascii output // the mapped unstructured grid is copied to a regular VTK grid. // See http://www.vtk.org/pipermail/vtkusers/2014-October/089400.html + WARN( + "Ascii data mode is currently not supported and the program may " + "crash!"); vtkSource->Update(); vtkSmartPointer<vtkUnstructuredGrid> tempGrid = vtkSmartPointer<vtkUnstructuredGrid>::New(); diff --git a/MeshLib/IO/VtkIO/VtuInterface.cpp b/MeshLib/IO/VtkIO/VtuInterface.cpp index f155975ac66661f5c7d5c4d9dfe9f210dbe9e496..dd38a43ccd515a76a689d09a069bfbf637bea0c3 100644 --- a/MeshLib/IO/VtkIO/VtuInterface.cpp +++ b/MeshLib/IO/VtkIO/VtuInterface.cpp @@ -43,8 +43,6 @@ namespace IO VtuInterface::VtuInterface(const MeshLib::Mesh* mesh, int dataMode, bool compress) : _mesh(mesh), _data_mode(dataMode), _use_compressor(compress) { - if(_data_mode == vtkXMLWriter::Appended) - ERR("Appended data mode is currently not supported!"); if(_data_mode == vtkXMLWriter::Ascii && compress) WARN("Ascii data cannot be compressed, ignoring compression flag.") } diff --git a/Tests/MeshLib/TestVtkMappedMeshSource.cpp b/Tests/MeshLib/TestVtkMappedMeshSource.cpp index 9d137e3237edccd760fbb1fbd6dd42d4230b9922..f7a66ffa444eb3639429716e8f7981fedfeab7b7 100644 --- a/Tests/MeshLib/TestVtkMappedMeshSource.cpp +++ b/Tests/MeshLib/TestVtkMappedMeshSource.cpp @@ -258,8 +258,8 @@ TEST_F(InSituMesh, DISABLED_MappedMeshSourceRoundtrip) ASSERT_EQ(range[1], mesh->getNumberOfElements() * 2); // -- Write VTK mesh to file (in all combinations of binary, appended and compressed) - // atm vtkXMLWriter::Appended does not work, see http://www.paraview.org/Bug/view.php?id=13382 - for(int dataMode : { vtkXMLWriter::Ascii, vtkXMLWriter::Binary }) + // TODO: atm vtkXMLWriter::Ascii fails + for(int dataMode : { vtkXMLWriter::Appended, vtkXMLWriter::Binary }) { for(bool compressed : { true, false }) {