Work around VTK 7 API change

This commit is contained in:
Richard Berger 2017-05-10 19:41:48 -04:00
parent 08ec55743e
commit cac1bf83ef
1 changed files with 6 additions and 0 deletions

View File

@ -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) :