From cac1bf83ef42d9f908354f02c5153714bb89ae6c Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Wed, 10 May 2017 19:41:48 -0400 Subject: [PATCH] Work around VTK 7 API change --- src/USER-VTK/dump_vtk.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) :