Commit cac1bf83 authored by Richard Berger's avatar Richard Berger
Browse files

Work around VTK 7 API change

parent 08ec5574
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -94,6 +94,12 @@ enum{VTK,VTP,VTU,PVTP,PVTU}; // file formats
#define ONEFIELD 32
#define DELTA 1048576

#if VTK_MAJOR_VERSION == 7
#define InsertNextTupleValue InsertNextTypedTuple
#elif VTK_MAJOR_VERSION > 7
#error This code has only been tested with VTK 5, 6, and 7
#endif

/* ---------------------------------------------------------------------- */

DumpVTK::DumpVTK(LAMMPS *lmp, int narg, char **arg) :