diff --git a/src/USER-VTK/dump_vtk.cpp b/src/USER-VTK/dump_vtk.cpp index 0aa749e73b..4a0c1618a6 100644 --- a/src/USER-VTK/dump_vtk.cpp +++ b/src/USER-VTK/dump_vtk.cpp @@ -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) :