Forums
I'm trying to use the new atom/vtk dump format...
According to the documentation the syntax is
dump ID group-ID style N file args
where atom/vtk args = none
I've tried the following:
dump dmp all atom/vtk 800 post/dump*.vtk
But I get the error: Invalid dump style (output.cpp:399)
Any suggestions from the LIGGGHTS gurus? Also with no arguments what exactly is exported with the atom/vtk output?
vtk is not linked
The format is correct. You just need to be sure, liggghts is linked against vtk shared library. "make ubuntuVTK" should do the job.
is there any documentation or
is there any documentation or tutorial how this is done? I've run sudo make ubuntuVTK from the LIGGGHTS/src directory but I get all sorts of missing header file messages.
VTK header files are not installed
Be sure, you have installed vtk-headers and vtk-libnrary. On Debian-based systems:
sudo apt-get install libvtk5-dev
In reply to by anonymous_stub (not verified)
thanks, but still having some problems
I've installed the headers, but I wonder if something else is still missing.
Here's the output of my error:
ahobbs@astec-win7-2:~/LIGGGHTS/LIGGGHTS-ASTEC/src$ sudo make ubuntuVTK
grep: angle_*.h: No such file or directory
grep: dihedral_*.h: No such file or directory
grep: improper_*.h: No such file or directory
make[1]: Entering directory `/home/ahobbs/LIGGGHTS/LIGGGHTS-ASTEC/src/Obj_ubuntuVTK'
mpic++ -g -O2 -funroll-loops -fstrict-aliasing -Wall -W -Wno-uninitialized -DLAMMPS_GZIP -DLAMMPS_VTK -I/usr/include/vtk-5.2 -I/usr/include/eigen2 -c dump_atom_vtk.cpp
In file included from dump_atom_vtk.cpp:29:0:
dump_atom_vtk.h:42:25: fatal error: vtkCellArray.h: No such file or directory
compilation terminated.
make[1]: *** [dump_atom_vtk.o] Error 1
make[1]: Leaving directory `/home/ahobbs/LIGGGHTS/LIGGGHTS-ASTEC/src/Obj_ubuntuVTK'
make: *** [ubuntuVTK] Error 2
Hi Andrew,
Hi Andrew,
you might have to change the makefile according to which Version of VTK you have installed. This line of the makefile
VTK_INC = -I/usr/include/vtk-5.2 -I/usr/include/eigen2
depends on the version of VTK lib you have installed (might be different than 5.2)
Cheers Christoph
I've edited the makefiles to
I've edited the makefiles to match the VTK version (5.8). I'm still getting some errors:
ahobbs@astec-win7-2:~/LIGGGHTS/LIGGGHTS-ASTEC/src$ sudo make ubuntuVTK
[sudo] password for ahobbs:
grep: angle_*.h: No such file or directory
grep: dihedral_*.h: No such file or directory
grep: improper_*.h: No such file or directory
make[1]: Entering directory `/home/ahobbs/LIGGGHTS/LIGGGHTS-ASTEC/src/Obj_ubuntuVTK'
mpic++ -g -O2 -funroll-loops -fstrict-aliasing -Wall -W -Wno-uninitialized -DLAMMPS_GZIP -DLAMMPS_VTK -I/usr/include/vtk-5.8 -I/usr/include/eigen2 -c dump_atom_vtk.cpp
In file included from /usr/include/c++/4.7/backward/strstream:52:0,
from /usr/include/vtk-5.8/vtkIOStream.h:112,
from /usr/include/vtk-5.8/vtkSystemIncludes.h:40,
from /usr/include/vtk-5.8/vtkIndent.h:24,
from /usr/include/vtk-5.8/vtkObjectBase.h:43,
from /usr/include/vtk-5.8/vtkObject.h:41,
from /usr/include/vtk-5.8/vtkCellArray.h:35,
from dump_atom_vtk.h:42,
from dump_atom_vtk.cpp:29:
/usr/include/c++/4.7/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
In file included from dump_atom_vtk.cpp:29:0:
dump_atom_vtk.h:59:22: fatal error: Eigen/Core: No such file or directory
compilation terminated.
make[1]: *** [dump_atom_vtk.o] Error 1
make[1]: Leaving directory `/home/ahobbs/LIGGGHTS/LIGGGHTS-ASTEC/src/Obj_ubuntuVTK'
make: *** [ubuntuVTK] Error 2
You need to install eigen3
You need to install eigen3 (libeigen3-dev package) to compile this feature.
Thanks but still not working
I've installed eigen2 (eigen3 wouldn't install on my version of ubuntu), and I think it has compiled ok. However I still get the invalid dump style when using:
dump dmp all atom/vtk 800 post/dump*.vtk
If you are not modifying the
If you are not modifying the LIGGGHTS-code for your needs, just install liggghts-test package [1], which has already precompiled VTK-support.
[1] https://launchpad.net/~liggghts-dev/+archive/ppa