git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10926 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2013-11-04 15:52:10 +00:00
parent 63795ebbcc
commit 82ebf90e49
11 changed files with 229 additions and 23 deletions

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -27,12 +27,14 @@ namespace LAMMPS_NS {
class DumpImage : public DumpCustom {
public:
DumpImage(class LAMMPS *, int, char**);
~DumpImage();
virtual ~DumpImage();
int pack_comm(int, int *, double *, int, int *);
void unpack_comm(int, int, double *);
private:
protected:
int filetype;
enum{PPM,JPG,PNG};
int acolor,adiam; // what determines color/diam of atoms
double adiamvalue; // atom diameter value
int atomflag,bondflag; // 0/1 for draw atoms,bonds
@ -62,7 +64,7 @@ class DumpImage : public DumpCustom {
double **bufcopy; // buffer for communicating bond/atom info
int maxbufcopy;
void init_style();
virtual void init_style();
int modify_param(int, char **);
void write();
@ -85,10 +87,14 @@ E: Invalid dump image filename
The file produced by dump image cannot be binary and must
be for a single processor.
E: Cannot dump JPG file
E: Support for writing images in JPEG format not included
LAMMPS was not built with the -DLAMMPS_JPEG switch in the Makefile.
E: Support for writing images in PNG format not included
LAMMPS was not built with the -DLAMMPS_PNG switch in the Makefile.
E: Illegal ... command
Self-explanatory. Check the input script syntax and compare to the