Skip to content

Commit

Permalink
Add missing LAMMPS_VTK preprocessor directives
Browse files Browse the repository at this point in the history
  • Loading branch information
aaigner committed Jan 18, 2017
1 parent a85c385 commit 393d326
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dump_mesh.cpp
Expand Up @@ -39,6 +39,8 @@
Copyright 2016- DCS Computing GmbH, Linz
------------------------------------------------------------------------- */

#ifdef LAMMPS_VTK

#include <string.h>
#include "dump_mesh.h"
#include "domain.h"
Expand Down Expand Up @@ -922,3 +924,5 @@ void DumpMesh::prepare_mbSet(vtkSmartPointer<vtkMultiBlockDataSet> mbSet)

return;
}

#endif // LAMMPS_VTK
3 changes: 3 additions & 0 deletions src/dump_mesh.h
Expand Up @@ -39,6 +39,8 @@
Copyright 2016- DCS Computing GmbH, Linz
------------------------------------------------------------------------- */

#if defined(LAMMPS_VTK) //NP do not use #ifdef here (VS C++ bug)

#ifndef LMP_DUMP_MESH_H
#define LMP_DUMP_MESH_H

Expand Down Expand Up @@ -128,3 +130,4 @@ class DumpMesh : public Pointers
}

#endif
#endif // LAMMPS_VTK

0 comments on commit 393d326

Please sign in to comment.