2006-09-28 03:51:33 +08:00
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
2007-01-30 08:22:05 +08:00
|
|
|
http://lammps.sandia.gov, Sandia National Laboratories
|
|
|
|
Steve Plimpton, sjplimp@sandia.gov
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
|
|
|
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
|
|
|
certain rights in this software. This software is distributed under
|
|
|
|
the GNU General Public License.
|
|
|
|
|
|
|
|
See the README file in the top-level LAMMPS directory.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#ifndef DUMP_XYZ_H
|
|
|
|
#define DUMP_XYZ_H
|
|
|
|
|
|
|
|
#include "dump.h"
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
class DumpXYZ : public Dump {
|
|
|
|
public:
|
2007-01-30 08:22:05 +08:00
|
|
|
DumpXYZ(class LAMMPS *, int, char**);
|
2006-09-28 03:51:33 +08:00
|
|
|
~DumpXYZ();
|
|
|
|
void init();
|
2007-10-05 01:57:04 +08:00
|
|
|
double memory_usage();
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
int natoms,ntotal;
|
|
|
|
int *types;
|
|
|
|
float *coords;
|
|
|
|
|
|
|
|
void write_header(int);
|
|
|
|
int count();
|
|
|
|
int pack();
|
|
|
|
void write_data(int, double *);
|
|
|
|
void write_frame();
|
|
|
|
};
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
}
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
#endif
|