Package: liggghts / 3.5.0+repack1-10

05_vtk6_support.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Fixes compilation against VTK6
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2015-06-22

Index: LIGGGHTS-PUBLIC-3.5.0/src/dump_atom_vtk.cpp
===================================================================
--- LIGGGHTS-PUBLIC-3.5.0.orig/src/dump_atom_vtk.cpp
+++ LIGGGHTS-PUBLIC-3.5.0/src/dump_atom_vtk.cpp
@@ -320,11 +320,11 @@ void DumpATOMVTK::vtkExportData::writeSE
 
   vtkSmartPointer<vtkXMLUnstructuredGridWriter> writer = vtkSmartPointer<vtkXMLUnstructuredGridWriter>::New();
   writer->SetDataModeToAscii();
-#if VTK_MAJOR_VERSION < 6
-  writer->SetInput(spheresUg);
-#else
-  writer->SetInputData(spheresUg);
-#endif
+  #ifdef LAMMPS_VTK6
+    writer->SetInputData(spheresUg);
+  #else
+    writer->SetInput(spheresUg);
+  #endif
   writer->SetFileName(_fileName);
   writer->Write();
 }